Package ucar.nc2.ft.point.remote
Class PointStream
- java.lang.Object
-
- ucar.nc2.ft.point.remote.PointStream
-
public class PointStream extends Object
Defines the point stream format, along with pointStream.proto. cd c:/dev/github/thredds/cdm/src/main/java protoc --proto_path=. --java_out=. ucar/nc2/ft/point/remote/pointStream.proto- Since:
- Feb 16, 2009
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PointStream.MessageType
-
Constructor Summary
Constructors Constructor Description PointStream()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PointStreamProto.PointFeature
encodePointFeature(PointFeature pf)
static PointStreamProto.PointFeatureCollection
encodePointFeatureCollection(String name, String timeUnitString, String altUnits, PointFeature pf)
static PointStreamProto.StationList
encodeStations(List<Station> stnList)
static PointStream.MessageType
readMagic(InputStream is)
static int
write(OutputStream out, PointFeatureIterator pointFeatIter, String name, String timeUnitString, String altUnits)
static int
write(PointFeatureCollection pointFeatCol, File outFile)
static int
writeMagic(OutputStream out, PointStream.MessageType type)
-
-
-
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, String timeUnitString, String altUnits, 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)
-
write
public static int write(PointFeatureCollection pointFeatCol, File outFile) throws IOException
- Throws:
IOException
-
write
public static int write(OutputStream out, PointFeatureIterator pointFeatIter, String name, String timeUnitString, String altUnits) throws IOException
- Throws:
IOException
-
-