ucar.nc2.iosp.netcdf3
Class N3streamWriter

java.lang.Object
  extended by ucar.nc2.iosp.netcdf3.N3streamWriter
Direct Known Subclasses:
N3channelWriter, N3outputStreamWriter

public abstract class N3streamWriter
extends java.lang.Object

Author:
john

Nested Class Summary
protected static class N3streamWriter.Vinfo
           
 
Field Summary
protected  boolean debug
           
protected  boolean debugPos
           
protected  boolean debugWriteData
           
protected  long filePos
           
protected  NetcdfFile ncfile
           
protected  int recSize
           
protected  int recStart
           
protected  java.util.List<N3streamWriter.Vinfo> vinfoList
           
protected  java.util.Map<Variable,N3streamWriter.Vinfo> vinfoMap
           
 
Constructor Summary
protected N3streamWriter(NetcdfFile ncfile)
           
 
Method Summary
protected  int pad(java.io.DataOutputStream stream, int nbytes, byte fill)
           
 void writeHeader(java.io.DataOutputStream stream)
          Write the header to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

N3streamWriter

protected N3streamWriter(NetcdfFile ncfile)
Method Detail

writeHeader

public void writeHeader(java.io.DataOutputStream stream)
                 throws java.io.IOException
Write the header to a stream.

Parameters:
stream - write to this stream.
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