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
|
java.lang.String |
getFileTypeDescription()
Get a human-readable description for this file type.
|
java.lang.String |
getFileTypeId()
Get a unique id for this file type.
|
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file?
|
static void |
main(java.lang.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, getStructureIterator, readSection, readToByteChannel, sendIospMessage, sync, syncExtend, toStringDebugprotected AreaReader areaReader
public boolean isValidFile(RandomAccessFile raf) throws java.io.IOException
raf - RandomAccessFile to checkjava.io.IOException - problem reading filepublic java.lang.String getFileTypeId()
IOServiceProviderpublic java.lang.String getFileTypeDescription()
IOServiceProviderpublic void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws java.io.IOException
open in interface IOServiceProvideropen in class AbstractIOServiceProviderraf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancellingjava.io.IOException - problem reading filepublic Array readData(Variable v2, Section section) throws java.io.IOException, InvalidRangeException
v2 - Variable to readsection - section infomationjava.io.IOException - problem reading from fileInvalidRangeException - invalid RangeRangepublic void close()
throws java.io.IOException
close in interface IOServiceProviderclose in class AbstractIOServiceProviderjava.io.IOException - problem closing filepublic static void main(java.lang.String[] args)
throws java.io.IOException
args - [0] input file name [0] output file namejava.io.IOException - problem reading the file