ucar.nc2.iosp.netcdf3
Class N3channelWriter

java.lang.Object
  extended by ucar.nc2.iosp.netcdf3.N3streamWriter
      extended by ucar.nc2.iosp.netcdf3.N3channelWriter

public class N3channelWriter
extends N3streamWriter

Experimental

Author:
john

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.iosp.netcdf3.N3streamWriter
N3streamWriter.Vinfo
 
Field Summary
 
Fields inherited from class ucar.nc2.iosp.netcdf3.N3streamWriter
debug, debugPos, debugWriteData, filePos, ncfile, recSize, recStart, usePadding, vinfoList, vinfoMap
 
Constructor Summary
N3channelWriter(NetcdfFile ncfile)
           
 
Method Summary
 void writeDataAll(WritableByteChannel channel)
           
static void writeFromFile(NetcdfFile fileIn, String fileOutName)
           
static void writeToChannel(NetcdfFile ncfile, WritableByteChannel wbc)
          Write ncfile to a WritableByteChannel.
 
Methods inherited from class ucar.nc2.iosp.netcdf3.N3streamWriter
pad, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

N3channelWriter

public N3channelWriter(NetcdfFile ncfile)
Method Detail

writeDataAll

public void writeDataAll(WritableByteChannel channel)
                  throws IOException,
                         InvalidRangeException
Throws:
IOException
InvalidRangeException

writeFromFile

public static void writeFromFile(NetcdfFile fileIn,
                                 String fileOutName)
                          throws IOException,
                                 InvalidRangeException
Throws:
IOException
InvalidRangeException

writeToChannel

public static void writeToChannel(NetcdfFile ncfile,
                                  WritableByteChannel wbc)
                           throws IOException,
                                  InvalidRangeException
Write ncfile to a WritableByteChannel.

Parameters:
ncfile - the file to write
wbc - write to this WritableByteChannel. If its a Socket, must have been opened through a call to java.nio.channels.SocketChannel.open()
Throws:
IOException - on IO error
InvalidRangeException - range error


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