public class NcStream
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
MAGIC_DATA |
static byte[] |
MAGIC_DATA2 |
static byte[] |
MAGIC_DATACOV |
static byte[] |
MAGIC_END |
static byte[] |
MAGIC_ERR |
static byte[] |
MAGIC_HEADER |
static byte[] |
MAGIC_HEADERCOV |
static byte[] |
MAGIC_START |
static byte[] |
MAGIC_VDATA |
static byte[] |
MAGIC_VEND |
static int |
ncstream_data_version |
Constructor and Description |
---|
NcStream() |
Modifier and Type | Method and Description |
---|---|
static NcStreamProto.DataType |
convertDataType(DataType dtype) |
static DataType |
convertDataType(NcStreamProto.DataType dtype) |
static Attribute |
decodeAtt(NcStreamProto.Attribute attp) |
static java.lang.String |
decodeErrorMessage(NcStreamProto.Error err) |
static Section |
decodeSection(NcStreamProto.Section proto) |
static StructureData |
decodeStructureData(StructureMembers sm,
java.nio.ByteOrder bo,
byte[] proto) |
static NcStreamProto.Attribute.Builder |
encodeAtt(Attribute att) |
static NcStreamProto.Data |
encodeDataProto(java.lang.String varname,
DataType datatype,
Section section,
boolean deflate,
int uncompressedLength) |
static NcStreamProto.Error |
encodeErrorMessage(java.lang.String message) |
static NcStreamProto.Section |
encodeSection(Section section) |
static boolean |
readAndTest(java.io.InputStream is,
byte[] test) |
static boolean |
readAndTest(RandomAccessFile raf,
byte[] test) |
static int |
readFully(java.io.InputStream is,
byte[] b) |
static int |
readVInt(java.io.InputStream is) |
static int |
readVInt(RandomAccessFile raf) |
static boolean |
test(byte[] b,
byte[] test) |
static int |
writeBytes(java.io.OutputStream out,
byte[] b) |
static int |
writeVInt(java.io.OutputStream out,
int value) |
static int |
writeVInt(RandomAccessFile out,
int value) |
static int |
writeVInt(java.nio.channels.WritableByteChannel wbc,
int value) |
static int |
writeVLong(java.io.OutputStream out,
long i) |
public static final byte[] MAGIC_START
public static final byte[] MAGIC_HEADER
public static final byte[] MAGIC_DATA
public static final byte[] MAGIC_DATA2
public static final byte[] MAGIC_VDATA
public static final byte[] MAGIC_VEND
public static final byte[] MAGIC_HEADERCOV
public static final byte[] MAGIC_DATACOV
public static final byte[] MAGIC_ERR
public static final byte[] MAGIC_END
public static final int ncstream_data_version
public static NcStreamProto.Attribute.Builder encodeAtt(Attribute att)
public static NcStreamProto.Error encodeErrorMessage(java.lang.String message)
public static NcStreamProto.Data encodeDataProto(java.lang.String varname, DataType datatype, Section section, boolean deflate, int uncompressedLength)
public static NcStreamProto.Section encodeSection(Section section)
public static int writeBytes(java.io.OutputStream out, byte[] b) throws java.io.IOException
java.io.IOException
public static int writeVInt(java.io.OutputStream out, int value) throws java.io.IOException
java.io.IOException
public static int writeVInt(RandomAccessFile out, int value) throws java.io.IOException
java.io.IOException
public static int writeVInt(java.nio.channels.WritableByteChannel wbc, int value) throws java.io.IOException
java.io.IOException
public static int writeVLong(java.io.OutputStream out, long i) throws java.io.IOException
java.io.IOException
public static int readVInt(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static int readVInt(RandomAccessFile raf) throws java.io.IOException
java.io.IOException
public static int readFully(java.io.InputStream is, byte[] b) throws java.io.IOException
java.io.IOException
public static boolean readAndTest(java.io.InputStream is, byte[] test) throws java.io.IOException
java.io.IOException
public static boolean readAndTest(RandomAccessFile raf, byte[] test) throws java.io.IOException
java.io.IOException
public static boolean test(byte[] b, byte[] test)
public static java.lang.String decodeErrorMessage(NcStreamProto.Error err)
public static Attribute decodeAtt(NcStreamProto.Attribute attp)
@Nonnull public static Section decodeSection(NcStreamProto.Section proto)
public static NcStreamProto.DataType convertDataType(DataType dtype)
public static DataType convertDataType(NcStreamProto.DataType dtype)
public static StructureData decodeStructureData(StructureMembers sm, java.nio.ByteOrder bo, byte[] proto) throws java.io.IOException
java.io.IOException