ucar.nc2.iosp.netcdf3
Class N3channelWriter
java.lang.Object
ucar.nc2.iosp.netcdf3.N3streamWriter
ucar.nc2.iosp.netcdf3.N3channelWriter
public class N3channelWriter
- extends N3streamWriter
Experimental
- Author:
- john
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
N3channelWriter
public N3channelWriter(NetcdfFile ncfile)
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 writewbc
- 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.