public class AreaServiceProvider extends AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
protected AreaReader |
areaReader
AREA file reader
|
location, ncfile, raf, rafOrder| Constructor and Description |
|---|
AreaServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getFileTypeDescription() |
String |
getFileTypeId() |
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file?
|
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Open the service provider for reading.
|
void |
reacquire() |
Array |
readData(Variable v2,
Section section)
Read the data for the variable
|
void |
release() |
getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, readSection, readToByteChannel, readToOutputStream, sendIospMessage, streamToByteChannel, syncExtend, toStringDebugprotected AreaReader areaReader
public boolean isValidFile(RandomAccessFile raf) throws IOException
raf - RandomAccessFile to checkIOException - problem reading filepublic String getFileTypeId()
public String getFileTypeDescription()
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open in interface IOServiceProvideropen in class AbstractIOServiceProviderraf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancellingIOException - problem reading filepublic Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
v2 - Variable to readsection - section informationIOException - problem reading from fileInvalidRangeException - invalid Rangepublic void close()
throws IOException
close in interface IOServiceProviderclose in class AbstractIOServiceProviderIOExceptionpublic void release()
throws IOException
release in interface IOServiceProviderrelease in class AbstractIOServiceProviderIOExceptionpublic void reacquire()
throws IOException
reacquire in interface IOServiceProviderreacquire in class AbstractIOServiceProviderIOExceptionCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.