Package 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:
Comparable<IOServiceProvider>
,IOServiceProvider
,IOServiceProviderWriter
@Deprecated public class N3raf extends N3iosp
Deprecated.do not useUse our RandomAccessFile class to read and write.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.iosp.IOServiceProvider
IOServiceProvider.SortGroup
-
-
Field Summary
-
Fields inherited from class ucar.nc2.iosp.netcdf3.N3iosp
debug, debugRead, debugRecord, debugSize, debugSPIO, fill, header, lastModified, MAX_NUMRECS, MAX_VARSIZE, NC_FILL_BYTE, NC_FILL_CHAR, NC_FILL_DOUBLE, NC_FILL_FLOAT, NC_FILL_INT, NC_FILL_INT64, NC_FILL_SHORT, NC_FILL_STRING, NC_FILL_UBYTE, NC_FILL_UINT, NC_FILL_UINT64, NC_FILL_USHORT, readonly, showHeaderBytes, useRecordStructure
-
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
location, ncfile, raf, rafOrder
-
-
Constructor Summary
Constructors Constructor Description N3raf()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
_create(RandomAccessFile raf)
Deprecated.protected void
_open(RandomAccessFile raf)
Deprecated.protected Object
readData(Layout index, DataType dataType)
Deprecated.Read data subset from file for a variable, create primitive array.protected long
readData(Layout index, DataType dataType, WritableByteChannel out)
Deprecated.Read data subset from file for a variable, to WritableByteChannel.protected void
writeData(Array values, Layout index, DataType dataType)
Deprecated.write data to a file for a variable.-
Methods inherited from class ucar.nc2.iosp.netcdf3.N3iosp
appendStructureData, close, create, createValidNetcdf3ObjectName, fillNonRecordVariables, fillRecordVariables, flush, getDetailInfo, getFileTypeDescription, getFileTypeId, getFileTypeVersion, getFillValueDefault, getValidNetcdf3ObjectNamePattern, isValidFile, isValidNetcdf3ObjectName, isValidNetcdfObjectName, makeValidNetcdf3ObjectName, makeValidNetcdfObjectName, open, openForWriting, reacquire, readData, readToByteChannel, rewriteHeader, sendIospMessage, setFill, setNumrecs, setProperty, syncExtend, toStringDebug, updateAttribute, writeData
-
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
build, buildFinish, getLastModified, getStructureIterator, isBuilder, readSection, readToOutputStream, release, setNetcdfFile, streamToByteChannel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.iosp.IOServiceProvider
build, buildFinish, compareTo, getSortGroup, getStructureIterator, isBuilder, readSection, readToOutputStream, release, streamToByteChannel
-
-
-
-
Method Detail
-
_open
protected void _open(RandomAccessFile raf)
Deprecated.
-
_create
protected void _create(RandomAccessFile raf)
Deprecated.
-
readData
protected Object readData(Layout index, DataType dataType) throws IOException
Deprecated.Read data subset from file for a variable, create primitive array.- Specified by:
readData
in classN3iosp
- 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
Deprecated.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 classN3iosp
- 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
Deprecated.write data to a file for a variable.- Specified by:
writeData
in classN3iosp
- Parameters:
values
- write this data.index
- handles skipping around in the file.dataType
- dataType of the variable- Throws:
IOException
- on error
-
-