public class N3channelWriter extends N3streamWriter
N3streamWriter.Vinfo
debug, debugPos, debugWriteData, filePos, ncfile, recSize, recStart, usePadding, vinfoList, vinfoMap
Constructor and Description |
---|
N3channelWriter(NetcdfFile ncfile) |
Modifier and Type | Method and Description |
---|---|
void |
writeDataAll(WritableByteChannel channel) |
static void |
writeFromFile(NetcdfFile fileIn,
String fileOutName) |
static void |
writeToChannel(NetcdfFile ncfile,
WritableByteChannel wbc)
Write ncfile to a WritableByteChannel.
|
pad, writeHeader
public N3channelWriter(NetcdfFile ncfile)
public void writeDataAll(WritableByteChannel channel) throws IOException, InvalidRangeException
IOException
InvalidRangeException
public static void writeFromFile(NetcdfFile fileIn, String fileOutName) throws IOException, InvalidRangeException
IOException
InvalidRangeException
public static void writeToChannel(NetcdfFile ncfile, WritableByteChannel wbc) throws 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()IOException
- on IO errorInvalidRangeException
- range errorCopyright © 1999–2019 UCAR/Unidata. All rights reserved.