|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOServiceProvider
This is the service provider interface for the low-level I/O access classes (read only). This is only used by service implementors. The NetcdfFile class manages all registered IOServiceProvider classes. When NetcdfFile.open() is called:
;| Method Summary | |
|---|---|
void |
close()
Close the file. |
java.lang.String |
getDetailInfo()
Show debug / underlying implementation details |
boolean |
isValidFile(RandomAccessFile raf)
Check if this is a valid file for this IOServiceProvider. |
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Open existing file, and populate ncfile with it. |
Array |
readData(Variable v2,
Section section)
Read data from a top level Variable and return a memory resident Array. |
Array |
readSection(ParsedSectionSpec cer)
Allows reading sections of nested variables |
long |
readToByteChannel(Variable v2,
Section section,
java.nio.channels.WritableByteChannel channel)
Read data from a top level Variable and send data to a WritableByteChannel. |
java.lang.Object |
sendIospMessage(java.lang.Object message)
A way to communicate arbitrary information to an iosp. |
boolean |
sync()
Check if file has changed, and reread metadata if needed. |
boolean |
syncExtend()
Extend the file if needed in a way that is compatible with the current metadata. |
java.lang.String |
toStringDebug(java.lang.Object o)
Debug info for this object. |
| Method Detail |
|---|
boolean isValidFile(RandomAccessFile raf)
throws java.io.IOException
raf - RandomAccessFile
java.io.IOException - if read error
void open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
throws java.io.IOException
raf - the file to work on, it has already passed the isValidFile() test.ncfile - add objects to this empty NetcdfFilecancelTask - used to monitor user cancellation; may be null.
java.io.IOException - if read error
Array readData(Variable v2,
Section section)
throws java.io.IOException,
InvalidRangeException
v2 - a top-level Variablesection - the section of data to read.
There must be a Range for each Dimension in the variable, in order.
Note: no nulls allowed. IOSP may not modify.
java.io.IOException - if read error
InvalidRangeException - if invalid sectionRange
long readToByteChannel(Variable v2,
Section section,
java.nio.channels.WritableByteChannel channel)
throws java.io.IOException,
InvalidRangeException
v2 - a top-level Variablesection - the section of data to read.
There must be a Range for each Dimension in the variable, in order.
Note: no nulls allowed. IOSP may not modify.channel - write data to this WritableByteChannel
java.io.IOException - if read error
InvalidRangeException - if invalid section
Array readSection(ParsedSectionSpec cer)
throws java.io.IOException,
InvalidRangeException
cer -
java.io.IOException
InvalidRangeException
void close()
throws java.io.IOException
java.io.IOException - if read error
boolean syncExtend()
throws java.io.IOException
java.io.IOException - if read error
boolean sync()
throws java.io.IOException
java.io.IOException - if read errorjava.lang.Object sendIospMessage(java.lang.Object message)
message - opaque message.
java.lang.String toStringDebug(java.lang.Object o)
o - which object
java.lang.String getDetailInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||