public class Vis5DIosp extends AbstractIOServiceProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Vis5DIosp.MakeNetcdfFile
TODO: generalize this
static class for testing
|
class |
Vis5DIosp.Vis5DLookup
Get all the information about a Vis5D file
|
raf| Constructor and Description |
|---|
Vis5DIosp() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this IOSP
|
String |
getFileTypeDescription()
Get the file type description
|
String |
getFileTypeId()
Get the file type id
|
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, toStringDebugpublic 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.