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, fill, FillValue, header, 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, readonly, showHeaderBytes, useRecordStructure |
Constructor Summary |
N3raf()
|
Methods inherited from class ucar.nc2.iosp.netcdf3.N3iosp |
close, convertByteToCharUTF, convertCharToByteUTF, create, createValidNetcdf3ObjectName, fillNonRecordVariables, fillRecordVariables, flush, getDetailInfo, getFileTypeDescription, getFileTypeId, getValidNetcdf3ObjectNamePattern, isValidFile, isValidNetcdf3ObjectName, makeValidNetcdfObjectName, makeValidNetcdfObjectNameOld, 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 IOException
- Specified by:
_open
in class N3iosp
- Throws:
IOException
_create
protected void _create(RandomAccessFile raf)
throws IOException
- Specified by:
_create
in class N3iosp
- Throws:
IOException
readData
protected Object readData(Layout index,
DataType dataType)
throws 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:
IOException
- on error
readData
protected long readData(Layout index,
DataType dataType,
WritableByteChannel out)
throws IOException
- Read data subset from file for a variable, to WritableByteChannel.
Will send as bigendian, since thats what the underlying file has.
- Specified by:
readData
in class N3iosp
- Parameters:
index
- handles skipping around in the file.dataType
- dataType of the variable
- Throws:
IOException
writeData
protected void writeData(Array values,
Layout index,
DataType dataType)
throws 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:
IOException
- on error
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.