public abstract class N3streamWriter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
N3streamWriter.Vinfo |
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug |
protected boolean |
debugPos |
protected boolean |
debugWriteData |
protected long |
filePos |
protected NetcdfFile |
ncfile |
protected int |
recSize |
protected int |
recStart |
protected boolean |
usePadding |
protected java.util.List<N3streamWriter.Vinfo> |
vinfoList |
protected java.util.Map<Variable,N3streamWriter.Vinfo> |
vinfoMap |
Modifier | Constructor and Description |
---|---|
protected |
N3streamWriter(NetcdfFile ncfile) |
Modifier and Type | Method and Description |
---|---|
protected int |
pad(java.io.DataOutputStream stream,
int nbytes,
byte fill) |
void |
writeHeader(java.io.DataOutputStream stream,
int numrec)
Write the header to a stream.
|
protected NetcdfFile ncfile
protected java.util.Map<Variable,N3streamWriter.Vinfo> vinfoMap
protected java.util.List<N3streamWriter.Vinfo> vinfoList
protected boolean debug
protected boolean debugPos
protected boolean debugWriteData
protected int recStart
protected int recSize
protected boolean usePadding
protected long filePos
protected N3streamWriter(NetcdfFile ncfile)
public void writeHeader(java.io.DataOutputStream stream, int numrec) throws java.io.IOException
stream
- write to this stream.numrec
- pass in number of record is you know it, else -1 for "streaming" format variantjava.io.IOException
- if write failsprotected int pad(java.io.DataOutputStream stream, int nbytes, byte fill) throws java.io.IOException
java.io.IOException