ucar.nc2.iosp.netcdf3
Class N3channelWriter
java.lang.Object
ucar.nc2.iosp.netcdf3.N3streamWriter
ucar.nc2.iosp.netcdf3.N3channelWriter
public class N3channelWriter
- extends N3streamWriter
- 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(java.nio.channels.WritableByteChannel channel)
throws java.io.IOException,
InvalidRangeException
- Throws:
java.io.IOException
InvalidRangeException
writeFromFile
public static void writeFromFile(NetcdfFile fileIn,
java.lang.String fileOutName)
throws java.io.IOException,
InvalidRangeException
- Throws:
java.io.IOException
InvalidRangeException
writeToChannel
public static void writeToChannel(NetcdfFile ncfile,
java.nio.channels.WritableByteChannel wbc)
throws java.io.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:
java.io.IOException - on IO error
InvalidRangeException - range error