ucar.nc2.stream
Class NcStream

java.lang.Object
  extended by 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"

Constructor Summary
NcStream()
           
 
Method Summary
static DataType decodeDataType(NcStreamProto.DataType dtype)
           
static Section decodeSection(NcStreamProto.Section proto)
           
static NcStreamProto.DataType encodeDataType(DataType dtype)
           
static NcStreamProto.Section encodeSection(Section section)
           
static int readFully(java.io.InputStream is, byte[] b)
           
static int readVInt(java.io.InputStream is)
           
static int writeVInt(java.io.OutputStream out, int value)
           
static int writeVInt(java.nio.channels.WritableByteChannel wbc, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcStream

public NcStream()
Method Detail

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)