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() |
java.lang.String |
getFileTypeDescription() |
java.lang.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() |
protected AreaReader areaReader
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
throws java.io.IOException
raf - RandomAccessFile to checkjava.io.IOException - problem reading filepublic java.lang.String getFileTypeId()
public java.lang.String getFileTypeDescription()
public void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws java.io.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 cancellingjava.io.IOException - problem reading filepublic ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws java.io.IOException,
ucar.ma2.InvalidRangeException
v2 - Variable to readsection - section informationjava.io.IOException - problem reading from fileucar.ma2.InvalidRangeException - invalid Rangepublic void close()
throws java.io.IOException
close in interface ucar.nc2.iosp.IOServiceProviderclose in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic void release()
throws java.io.IOException
release in interface ucar.nc2.iosp.IOServiceProviderrelease in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic void reacquire()
throws java.io.IOException
reacquire in interface ucar.nc2.iosp.IOServiceProviderreacquire in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOException