public class AreaServiceProvider
extends ucar.nc2.iosp.AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
protected AreaReader |
areaReader
AREA file reader
|
| Constructor and Description |
|---|
AreaServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getFileTypeDescription() |
String |
getFileTypeId() |
boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf)
Is this a valid file?
|
void |
open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
Open the service provider for reading.
|
void |
reacquire() |
ucar.ma2.Array |
readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
Read the data for the variable
|
void |
release() |
build, buildFinish, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, readSection, readToByteChannel, readToOutputStream, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebugprotected AreaReader areaReader
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
throws IOException
raf - RandomAccessFile to checkIOException - problem reading filepublic String getFileTypeId()
public String getFileTypeDescription()
public void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws IOException
open in interface ucar.nc2.iosp.IOServiceProvideropen in class ucar.nc2.iosp.AbstractIOServiceProviderraf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancellingIOException - problem reading filepublic ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws IOException,
ucar.ma2.InvalidRangeException
v2 - Variable to readsection - section informationIOException - problem reading from fileucar.ma2.InvalidRangeException - invalid Rangepublic void close()
throws IOException
close in interface ucar.nc2.iosp.IOServiceProviderclose in class ucar.nc2.iosp.AbstractIOServiceProviderIOExceptionpublic void release()
throws IOException
release in interface ucar.nc2.iosp.IOServiceProviderrelease in class ucar.nc2.iosp.AbstractIOServiceProviderIOExceptionpublic void reacquire()
throws IOException
reacquire in interface ucar.nc2.iosp.IOServiceProviderreacquire in class ucar.nc2.iosp.AbstractIOServiceProviderIOException