ucar.nc2.stream
Class NcStreamWriter

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

public class NcStreamWriter
extends Object

Write a NetcdfFile to a WritableByteChannel using ncstream protocol

Since:
Feb 7, 2009
Author:
caron

Constructor Summary
NcStreamWriter(NetcdfFile ncfile, String location)
           
 
Method Summary
 long sendData(Variable v, Section section, WritableByteChannel wbc)
           
 long sendEnd(WritableByteChannel wbc)
           
 long sendHeader(WritableByteChannel wbc)
           
 long sendStart(WritableByteChannel wbc)
           
 long streamAll(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,
                      String location)
               throws IOException
Throws:
IOException
Method Detail

sendStart

public long sendStart(WritableByteChannel wbc)
               throws IOException
Throws:
IOException

sendEnd

public long sendEnd(WritableByteChannel wbc)
             throws IOException
Throws:
IOException

sendHeader

public long sendHeader(WritableByteChannel wbc)
                throws IOException
Throws:
IOException

sendData

public long sendData(Variable v,
                     Section section,
                     WritableByteChannel wbc)
              throws IOException,
                     InvalidRangeException
Throws:
IOException
InvalidRangeException

streamAll

public long streamAll(WritableByteChannel wbc)
               throws IOException,
                      InvalidRangeException
Throws:
IOException
InvalidRangeException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.