public class N3channelWriter extends N3streamWriter
N3streamWriter.Vinfodebug, debugPos, debugWriteData, filePos, ncfile, recSize, recStart, usePadding, vinfoList, vinfoMap| Constructor and Description |
|---|
N3channelWriter(NetcdfFile ncfile) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeDataAll(java.nio.channels.WritableByteChannel channel) |
static void |
writeFromFile(NetcdfFile fileIn,
java.lang.String fileOutName) |
static void |
writeToChannel(NetcdfFile ncfile,
java.nio.channels.WritableByteChannel wbc)
Write ncfile to a WritableByteChannel.
|
pad, writeHeaderpublic N3channelWriter(NetcdfFile ncfile)
public void writeDataAll(java.nio.channels.WritableByteChannel channel)
throws java.io.IOException,
InvalidRangeException
java.io.IOExceptionInvalidRangeExceptionpublic static void writeFromFile(NetcdfFile fileIn, java.lang.String fileOutName) throws java.io.IOException, InvalidRangeException
java.io.IOExceptionInvalidRangeExceptionpublic static void writeToChannel(NetcdfFile ncfile, java.nio.channels.WritableByteChannel wbc) throws java.io.IOException, InvalidRangeException
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()java.io.IOException - on IO errorInvalidRangeException - range error