ucar.nc2.ft.point.remote
Class PointStream

java.lang.Object
  extended by ucar.nc2.ft.point.remote.PointStream

public class PointStream
extends Object

Defines the point stream format, along with pointStream.proto. cd c:/dev/tds4.2/thredds/cdm/src/main/java protoc --proto_path=. --java_out=. ucar/nc2/ft/point/remote/pointStream.proto

Since:
Feb 16, 2009
Author:
caron

Nested Class Summary
static class PointStream.MessageType
           
 
Constructor Summary
PointStream()
           
 
Method Summary
static PointStreamProto.PointFeature encodePointFeature(PointFeature pf)
           
static PointStreamProto.PointFeatureCollection encodePointFeatureCollection(String name, PointFeature pf)
           
static PointStreamProto.StationList encodeStations(List<Station> stnList)
           
static PointStream.MessageType readMagic(InputStream is)
           
static int writeMagic(OutputStream out, PointStream.MessageType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointStream

public PointStream()
Method Detail

readMagic

public static PointStream.MessageType readMagic(InputStream is)
                                         throws IOException
Throws:
IOException

writeMagic

public static int writeMagic(OutputStream out,
                             PointStream.MessageType type)
                      throws IOException
Throws:
IOException

encodePointFeatureCollection

public static PointStreamProto.PointFeatureCollection encodePointFeatureCollection(String name,
                                                                                   PointFeature pf)
                                                                            throws IOException
Throws:
IOException

encodePointFeature

public static PointStreamProto.PointFeature encodePointFeature(PointFeature pf)
                                                        throws IOException
Throws:
IOException

encodeStations

public static PointStreamProto.StationList encodeStations(List<Station> stnList)
                                                   throws IOException
Throws:
IOException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.