|
||||||||||
| 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
| Field Summary | |
|---|---|
protected RandomAccessFile |
raf
|
| Constructor Summary | |
|---|---|
AbstractIOServiceProvider()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the file. |
static long |
copyToByteChannel(Array data,
java.nio.channels.WritableByteChannel channel)
|
static java.lang.String |
createValidNetcdfObjectName(java.lang.String name)
|
java.lang.String |
getDetailInfo()
Show debug / underlying implementation details |
java.lang.String |
getFileTypeVersion()
Get the version of this file type. |
StructureDataIterator |
getStructureIterator(Structure s,
int bufferSize)
|
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()
Update the metadata in the NetcdfFile if the underlying dataset has changed. |
boolean |
syncExtend()
Extend the NetcdfFile if the underlying dataset has changed 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 |
|---|
getFileTypeDescription, getFileTypeId, isValidFile, open, readData |
| Field Detail |
|---|
protected RandomAccessFile raf
| Constructor Detail |
|---|
public AbstractIOServiceProvider()
| Method Detail |
|---|
public static java.lang.String createValidNetcdfObjectName(java.lang.String name)
public void close()
throws java.io.IOException
IOServiceProvider
close in interface IOServiceProviderjava.io.IOException - if read error
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 static long copyToByteChannel(Array data,
java.nio.channels.WritableByteChannel channel)
throws java.io.IOException,
InvalidRangeException
java.io.IOException
InvalidRangeException
public Array readSection(ParsedSectionSpec cer)
throws java.io.IOException,
InvalidRangeException
IOServiceProvider
readSection in interface IOServiceProviderjava.io.IOException
InvalidRangeException
public StructureDataIterator getStructureIterator(Structure s,
int bufferSize)
throws java.io.IOException
java.io.IOExceptionpublic 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 a read error occured when accessing the underlying dataset.
public boolean sync()
throws java.io.IOException
IOServiceProvider
sync in interface IOServiceProviderjava.io.IOException - if a read error occured when accessing the underlying dataset.public java.lang.String toStringDebug(java.lang.Object o)
IOServiceProvider
toStringDebug in interface IOServiceProvidero - which object
public java.lang.String getDetailInfo()
IOServiceProvider
getDetailInfo in interface IOServiceProviderpublic java.lang.String getFileTypeVersion()
IOServiceProvider
getFileTypeVersion in interface IOServiceProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||