ucar.nc2.iosp.netcdf3
Class N3streamWriter
java.lang.Object
ucar.nc2.iosp.netcdf3.N3streamWriter
- Direct Known Subclasses:
- N3channelWriter, N3outputStreamWriter
public abstract class N3streamWriter
- extends java.lang.Object
Common superclass for N3outputStreamWriter and N3channelStreamWriter.
Experimental
- Author:
- john
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ncfile
protected NetcdfFile ncfile
vinfoMap
protected java.util.Map<Variable,N3streamWriter.Vinfo> vinfoMap
vinfoList
protected java.util.List<N3streamWriter.Vinfo> vinfoList
debug
protected boolean debug
debugPos
protected boolean debugPos
debugWriteData
protected boolean debugWriteData
recStart
protected int recStart
recSize
protected int recSize
filePos
protected long filePos
N3streamWriter
protected N3streamWriter(NetcdfFile ncfile)
writeHeader
public void writeHeader(java.io.DataOutputStream stream,
int numrec)
throws java.io.IOException
- Write the header to a stream.
- Parameters:
stream - write to this stream.numrec - pass in number of record is you know it, else -1 for "streaming" format variant
- Throws:
java.io.IOException - if write fails
pad
protected int pad(java.io.DataOutputStream stream,
int nbytes,
byte fill)
throws java.io.IOException
- Throws:
java.io.IOException