public class H5iosp extends AbstractIOServiceProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
IOSP_MESSAGE_INCLUDE_ORIGINAL_ATTRIBUTES |
location, ncfile, raf, rafOrder| Constructor and Description |
|---|
H5iosp() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(RandomAccessFile raf,
Group.Builder rootGroup,
CancelTask cancelTask)
Read an existing RandomAccessFile, and populate rootGroup.
|
void |
close()
Close the file.
|
String |
getFileTypeDescription()
Get a human-readable description for this file type.
|
String |
getFileTypeId()
Get a unique id for this file type.
|
String |
getFileTypeVersion()
Get the version of this file type.
|
H5header |
getHeader() |
boolean |
isValidFile(RandomAccessFile raf)
Check if this is a valid file for this IOServiceProvider.
|
void |
reacquire()
Reacquire any resources like file handles
Used when reactivating in cache.
|
Array |
readData(Variable v2,
Section section) |
Object |
sendIospMessage(Object message)
A way to communicate arbitrary information to and from an iosp.
|
static void |
setDebugFlags(DebugFlags debugFlag) |
String |
toStringDebug(Object o)
Debug info for this object.
|
static void |
useHdfEos(boolean val) |
buildFinish, getDetailInfo, getLastModified, getStructureDataArrayIterator, getStructureIterator, open, readArrayData, readSection, readToOutputStream, release, setNetcdfFilepublic static final String IOSP_MESSAGE_INCLUDE_ORIGINAL_ATTRIBUTES
public static void setDebugFlags(DebugFlags debugFlag)
public boolean isValidFile(RandomAccessFile raf) throws IOException
IOServiceProviderraf - RandomAccessFileIOException - if read errorpublic String getFileTypeId()
IOServiceProviderpublic String getFileTypeDescription()
IOServiceProviderpublic static void useHdfEos(boolean val)
public String getFileTypeVersion()
IOServiceProvidergetFileTypeVersion in interface IOServiceProvidergetFileTypeVersion in class AbstractIOServiceProviderpublic void build(RandomAccessFile raf, Group.Builder rootGroup, CancelTask cancelTask) throws IOException
IOServiceProviderraf - the file to work on, it has already passed the isValidFile() test.rootGroup - add objects to the root group.cancelTask - used to monitor user cancellation; may be null.IOException - if read errorpublic Object sendIospMessage(Object message)
IOServiceProvidersendIospMessage in interface IOServiceProvidersendIospMessage in class AbstractIOServiceProvidermessage - opaque message sent to the IOSP object when its opened (not when isValidFile() is called)public H5header getHeader()
public Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionpublic void close()
throws IOException
IOServiceProviderclose in interface Closeableclose in interface AutoCloseableclose in interface IOServiceProviderclose in class AbstractIOServiceProviderIOException - if read errorpublic void reacquire()
throws IOException
IOServiceProviderreacquire in interface IOServiceProviderreacquire in class AbstractIOServiceProviderIOExceptionpublic String toStringDebug(Object o)
IOServiceProvidertoStringDebug in interface IOServiceProvidertoStringDebug in class AbstractIOServiceProvidero - which object