ucar.nc2.iosp.netcdf3
Class N3raf
java.lang.Object
ucar.nc2.iosp.AbstractIOServiceProvider
ucar.nc2.iosp.netcdf3.N3iosp
ucar.nc2.iosp.netcdf3.N3raf
- All Implemented Interfaces:
- IOServiceProvider, IOServiceProviderWriter
public class N3raf
- extends N3iosp
Use our RandomAccessFile class to read and write.
- Author:
- caron
| Fields inherited from class ucar.nc2.iosp.netcdf3.N3iosp |
debug, debugRecord, debugSize, debugSPIO, debugSync, dimHash, fileUsed, fill, FillValue, headerParser, lastModified, MAX_NUMRECS, MAX_VARSIZE, NC_FILL_BYTE, NC_FILL_CHAR, NC_FILL_DOUBLE, NC_FILL_FLOAT, NC_FILL_INT, NC_FILL_LONG, NC_FILL_SHORT, ncfile, numrecs, raf, readonly, recsize, recStart, showHeaderBytes, useRecordStructure |
|
Constructor Summary |
N3raf()
|
| Methods inherited from class ucar.nc2.iosp.netcdf3.N3iosp |
close, convertByteToCharUTF, convertCharToByteUTF, create, createValidNetcdf3ObjectName, fillNonRecordVariables, fillRecordVariables, flush, getDetailInfo, getValidNetcdf3ObjectNamePattern, isValidFile, isValidNetcdf3ObjectName, makeValidNetcdfObjectName, open, readData, readNestedData, readToByteChannel, rewriteHeader, sendIospMessage, setFill, setNumrecs, setProperty, sync, syncExtend, toStringDebug, updateAttribute, writeData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
N3raf
public N3raf()
_open
protected void _open(RandomAccessFile raf)
throws java.io.IOException
- Specified by:
_open in class N3iosp
- Throws:
java.io.IOException
_create
protected void _create(RandomAccessFile raf)
throws java.io.IOException
- Specified by:
_create in class N3iosp
- Throws:
java.io.IOException
readData
protected java.lang.Object readData(Layout index,
DataType dataType)
throws java.io.IOException
- Read data subset from file for a variable, create primitive array.
- Specified by:
readData in class N3iosp
- Parameters:
index - handles skipping around in the file.dataType - dataType of the variable
- Returns:
- primitive array with data read in
- Throws:
java.io.IOException - on error
readData
protected long readData(Layout index,
DataType dataType,
java.nio.channels.WritableByteChannel out)
throws java.io.IOException
- LOOK move to IospHelper
Read data subset from file for a variable, to WritableByteChannel .
- Specified by:
readData in class N3iosp
- Parameters:
index - handles skipping around in the file.dataType - dataType of the variable
- Throws:
java.io.IOException
writeData
protected void writeData(Array values,
Layout index,
DataType dataType)
throws java.io.IOException
- write data to a file for a variable.
- Specified by:
writeData in class N3iosp
- Parameters:
values - write this data.index - handles skipping around in the file.dataType - dataType of the variable
- Throws:
java.io.IOException - on error