|
||||||||||
| 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 |
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 |
boolean |
sync()
Sync and extend |
boolean |
syncExtend()
Extend the NetcdfFile if the underlying dataset has changed in a way that is compatible with the current metadata. |
| Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
|---|
copyToByteChannel, createValidNetcdfObjectName, getDetailInfo, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, sendIospMessage, 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 filepublic java.lang.String getFileTypeId()
IOServiceProvider
public java.lang.String getFileTypeDescription()
IOServiceProvider
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 RangeRange
public boolean syncExtend()
throws java.io.IOException
IOServiceProvider
syncExtend in interface IOServiceProvidersyncExtend in class AbstractIOServiceProviderjava.io.IOException - if a read error occured when accessing the underlying dataset.public boolean sync()
sync in interface IOServiceProvidersync in class AbstractIOServiceProvider
public void close()
throws java.io.IOException
close in interface IOServiceProviderclose in class AbstractIOServiceProviderjava.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 | |||||||||