ucar.nc2.stream
Class NcStreamWriter

java.lang.Object
  extended by ucar.nc2.stream.NcStreamWriter

public class NcStreamWriter
extends java.lang.Object

Write a NetcdfFile to a WritableByteChannel using ncstream protocol

Since:
Feb 7, 2009
Author:
caron

Constructor Summary
NcStreamWriter(NetcdfFile ncfile, java.lang.String location)
           
 
Method Summary
 long sendData(Variable v, Section section, java.nio.channels.WritableByteChannel wbc)
           
 long sendHeader(java.nio.channels.WritableByteChannel wbc)
           
 void streamAll(java.nio.channels.WritableByteChannel wbc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcStreamWriter

public NcStreamWriter(NetcdfFile ncfile,
                      java.lang.String location)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

sendHeader

public long sendHeader(java.nio.channels.WritableByteChannel wbc)
                throws java.io.IOException
Throws:
java.io.IOException

sendData

public long sendData(Variable v,
                     Section section,
                     java.nio.channels.WritableByteChannel wbc)
              throws java.io.IOException,
                     InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException

streamAll

public void streamAll(java.nio.channels.WritableByteChannel wbc)
               throws java.io.IOException,
                      InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException