ucar.nc2.iosp.netcdf3
Class N3streamWriter
java.lang.Object
ucar.nc2.iosp.netcdf3.N3streamWriter
- Direct Known Subclasses:
- N3channelWriter, N3outputStreamWriter
public abstract class N3streamWriter
- extends Object
Common superclass for N3outputStreamWriter and N3channelStreamWriter.
Experimental
- Author:
- john
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ncfile
protected NetcdfFile ncfile
vinfoMap
protected Map<Variable,N3streamWriter.Vinfo> vinfoMap
vinfoList
protected List<N3streamWriter.Vinfo> vinfoList
debug
protected boolean debug
debugPos
protected boolean debugPos
debugWriteData
protected boolean debugWriteData
recStart
protected int recStart
recSize
protected int recSize
usePadding
protected boolean usePadding
filePos
protected long filePos
N3streamWriter
protected N3streamWriter(NetcdfFile ncfile)
writeHeader
public void writeHeader(DataOutputStream stream,
int numrec)
throws 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:
IOException
- if write fails
pad
protected int pad(DataOutputStream stream,
int nbytes,
byte fill)
throws IOException
- Throws:
IOException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.