public class SerialWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
| Constructor and Description |
|---|
SerialWriter(OutputStream output,
ByteOrder order) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeChecksums(boolean tf) |
ByteBuffer |
encodeArray(DapType vtype,
Object values)
Encode an array of primitive values.
|
ByteBuffer |
encodeObject(DapType vtype,
Object value)
Encode an array of primitive values.
|
void |
endDataset() |
void |
endGroup() |
void |
endVariable() |
String |
getLastChecksum() |
void |
noSerialize(boolean tf) |
void |
startDataset() |
void |
startGroup() |
void |
startVariable() |
void |
writeArray(DapType daptype,
Object values)
Write out an array of values
|
void |
writeCount(long count)
Write out a prefix count
|
void |
writeObject(DapType daptype,
Object value)
Write out a single object
|
public SerialWriter(OutputStream output, ByteOrder order)
public void computeChecksums(boolean tf)
public void noSerialize(boolean tf)
public String getLastChecksum()
public ByteBuffer encodeObject(DapType vtype, Object value) throws IOException
vtype - The type of the objectvalue - The valueIOExceptionpublic ByteBuffer encodeArray(DapType vtype, Object values) throws IOException
vtype - The type of the objectvalues - The value arrayIOExceptionpublic void startDataset()
public void endDataset()
public void startGroup()
public void endGroup()
public void startVariable()
public void endVariable()
throws IOException
IOExceptionpublic void writeObject(DapType daptype, Object value) throws IOException
daptype - the type of the objectvalue - the object to write outIOExceptionpublic void writeCount(long count)
throws IOException
count - the count to write outIOExceptionpublic void writeArray(DapType daptype, Object values) throws IOException
daptype - the type of the objectIOExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.