|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.AbstractIOServiceProvider
ucar.nc2.iosp.mcidas.AreaServiceProvider
public class AreaServiceProvider
IOServiceProvider for McIDAS AREA files
Nested Class Summary | |
---|---|
protected static class |
AreaServiceProvider.MakeNetcdfFile
TODO: generalize this static class for testing |
Field Summary | |
---|---|
protected AreaReader |
areaReader
AREA file reader |
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
raf |
Constructor Summary | |
---|---|
AreaServiceProvider()
|
Method Summary | |
---|---|
void |
close()
Close this IOSP |
String |
getFileTypeDescription()
Get a human-readable description for this file type. |
String |
getFileTypeId()
Get a unique id for this file type. |
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 |
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
getDetailInfo, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, sendIospMessage, sync, syncExtend, toStringDebug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AreaReader areaReader
Constructor Detail |
---|
public AreaServiceProvider()
Method Detail |
---|
public boolean isValidFile(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile to check
IOException
- problem reading filepublic String getFileTypeId()
IOServiceProvider
public String getFileTypeDescription()
IOServiceProvider
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open
in interface IOServiceProvider
open
in class AbstractIOServiceProvider
raf
- file to read fromncfile
- netCDF file we are writing to (memory)cancelTask
- task for cancelling
IOException
- problem reading filepublic Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
v2
- Variable to readsection
- section infomation
IOException
- problem reading from file
InvalidRangeException
- invalid RangeRange
public void close() throws IOException
close
in interface IOServiceProvider
close
in class AbstractIOServiceProvider
IOException
- problem closing filepublic static void main(String[] args) throws IOException
args
- [0] input file name [0] output file name
IOException
- problem reading the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |