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 Object

Common superclass for N3outputStreamWriter and N3channelStreamWriter. Experimental

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  boolean usePadding
           
protected  List<N3streamWriter.Vinfo> vinfoList
           
protected  Map<Variable,N3streamWriter.Vinfo> vinfoMap
           
 
Constructor Summary
protected N3streamWriter(NetcdfFile ncfile)
           
 
Method Summary
protected  int pad(DataOutputStream stream, int nbytes, byte fill)
           
 void writeHeader(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
 

Field Detail

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

N3streamWriter

protected N3streamWriter(NetcdfFile ncfile)
Method Detail

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.