ucar.nc2.stream
Class NcStream
java.lang.Object
ucar.nc2.stream.NcStream
public class NcStream
- extends java.lang.Object
Defines the ncstream format, along with ncStream.proto.
cd /dev/tds/thredds/cdm/src/main/java
protoc --proto_path=. --java_out=. ucar/nc2/stream/ncStream.proto
- See Also:
- "http://www.unidata.ucar.edu/software/netcdf-java/stream/NcStream.html"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NcStream
public NcStream()
encodeSection
public static NcStreamProto.Section encodeSection(Section section)
writeVInt
public static int writeVInt(java.io.OutputStream out,
int value)
throws java.io.IOException
- Throws:
java.io.IOException
writeVInt
public static int writeVInt(java.nio.channels.WritableByteChannel wbc,
int value)
throws java.io.IOException
- Throws:
java.io.IOException
readVInt
public static int readVInt(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
readFully
public static int readFully(java.io.InputStream is,
byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
decodeSection
public static Section decodeSection(NcStreamProto.Section proto)
encodeDataType
public static NcStreamProto.DataType encodeDataType(DataType dtype)
decodeDataType
public static DataType decodeDataType(NcStreamProto.DataType dtype)