|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.iosp.AbstractIOServiceProvider
public abstract class AbstractIOServiceProvider
| Constructor Summary | |
|---|---|
AbstractIOServiceProvider()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
createValidNetcdfObjectName(java.lang.String name)
|
java.lang.String |
getDetailInfo()
Show debug / underlying implementation details |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.iosp.IOServiceProvider |
|---|
close, isValidFile, open, readData |
| Constructor Detail |
|---|
public AbstractIOServiceProvider()
| Method Detail |
|---|
public static java.lang.String createValidNetcdfObjectName(java.lang.String name)
public long readToByteChannel(Variable v2,
Section section,
java.nio.channels.WritableByteChannel channel)
throws java.io.IOException,
InvalidRangeException
IOServiceProvider
readToByteChannel in interface IOServiceProviderv2 - 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
public Array readSection(ParsedSectionSpec cer)
throws java.io.IOException,
InvalidRangeException
IOServiceProvider
readSection in interface IOServiceProviderjava.io.IOException
InvalidRangeExceptionpublic java.lang.Object sendIospMessage(java.lang.Object message)
IOServiceProvider
sendIospMessage in interface IOServiceProvidermessage - opaque message.
public boolean syncExtend()
throws java.io.IOException
IOServiceProvider
syncExtend in interface IOServiceProviderjava.io.IOException - if read error
public boolean sync()
throws java.io.IOException
IOServiceProvider
sync in interface IOServiceProviderjava.io.IOException - if read errorpublic java.lang.String toStringDebug(java.lang.Object o)
IOServiceProvider
toStringDebug in interface IOServiceProvidero - which object
public java.lang.String getDetailInfo()
IOServiceProvider
getDetailInfo in interface IOServiceProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||