public class AreaServiceProvider extends AbstractIOServiceProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AreaServiceProvider.MakeNetcdfFile
TODO: generalize this
static class for testing
|
| 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()
Close this IOSP
|
String |
getFileTypeDescription() |
String |
getFileTypeId() |
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file?
|
static void |
main(String[] args)
Test this.
|
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 AbstractIOServiceProviderIOException - problem closing filepublic static void main(String[] args) throws IOException
args - [0] input file name [0] output file nameIOException - problem reading the fileCopyright © 1999–2013 UCAR/Unidata. All rights reserved.