public class AreaServiceProvider extends AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
protected AreaReader |
areaReader
AREA file reader
|
raf| 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.
|
Array |
readData(Variable v2,
Section section)
Read the data for the variable
|
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 infomationIOException - problem reading from fileInvalidRangeException - invalid Rangepublic void close()
throws IOException
close in interface IOServiceProviderclose in class AbstractIOServiceProviderIOExceptionCopyright © 1999–2015 UCAR/Unidata. All rights reserved.