|
||||||||||
| 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 |
| Constructor Summary | |
|---|---|
AreaServiceProvider()
|
|
| Method Summary | |
|---|---|
void |
close()
Close this IOSP |
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 |
boolean |
sync()
Sync and extend |
| Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
|---|
createValidNetcdfObjectName, getDetailInfo, getStructureIterator, readSection, readToByteChannel, sendIospMessage, 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 java.io.IOException
raf - RandomAccessFile to check
java.io.IOException - problem reading file
public void open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
throws java.io.IOException
raf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancelling
java.io.IOException - problem reading file
public Array readData(Variable v2,
Section section)
throws java.io.IOException,
InvalidRangeException
v2 - Variable to readsection - section infomation
java.io.IOException - problem reading from file
InvalidRangeException - invalid RangeRangepublic boolean sync()
sync in interface IOServiceProvidersync in class AbstractIOServiceProvider
public void close()
throws java.io.IOException
java.io.IOException - problem closing file
public static void main(java.lang.String[] args)
throws java.io.IOException
args - [0] input file name [0] output file name
java.io.IOException - problem reading the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||