public class H5headerNew extends java.lang.Object implements H5headerIF, HdfHeaderIF
Modifier and Type | Class and Description |
---|---|
static class |
H5headerNew.TypeInfo |
class |
H5headerNew.Vinfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HDF5_CLASS |
static java.lang.String |
HDF5_DIMENSION_LABELS |
static java.lang.String |
HDF5_DIMENSION_LIST |
static java.lang.String |
HDF5_DIMENSION_NAME |
static java.lang.String |
HDF5_DIMENSION_SCALE |
static java.lang.String |
HDF5_REFERENCE_LIST |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected Array |
convertEnums(java.util.Map<java.lang.Integer,java.lang.String> map,
DataType dataType,
Array values) |
java.util.List<H5objects.DataObject> |
getDataObjects() |
void |
getEosInfo(java.util.Formatter f) |
long |
getFileOffset(long address) |
int |
getNumBytesFromMax(long maxNumber) |
RandomAccessFile |
getRandomAccessFile() |
Group.Builder |
getRootGroup() |
byte |
getSizeLengths() |
byte |
getSizeOffsets() |
protected java.nio.charset.Charset |
getValueCharset()
Return defined
value charset that
will be used by reading HDF5 header. |
boolean |
isOffsetLong() |
static boolean |
isValidFile(RandomAccessFile raf) |
int |
makeIntFromBytes(byte[] bb,
int start,
int n) |
void |
makeVinfoForDimensionMapVariable(Group.Builder parent,
Variable.Builder<?> v) |
void |
read(java.io.PrintWriter debugPS) |
long |
readAddress() |
long |
readLength() |
long |
readOffset() |
java.lang.String |
readStructMetadata(Variable.Builder<?> structMetadataVar) |
long |
readVariableSizeUnsigned(int size) |
static void |
setDebugFlags(DebugFlags debugFlag) |
static void |
setWarnings(boolean warn) |
public static final java.lang.String HDF5_CLASS
public static final java.lang.String HDF5_DIMENSION_LIST
public static final java.lang.String HDF5_DIMENSION_SCALE
public static final java.lang.String HDF5_DIMENSION_LABELS
public static final java.lang.String HDF5_DIMENSION_NAME
public static final java.lang.String HDF5_REFERENCE_LIST
public static void setWarnings(boolean warn)
public static void setDebugFlags(DebugFlags debugFlag)
public static boolean isValidFile(RandomAccessFile raf) throws java.io.IOException
java.io.IOException
protected java.nio.charset.Charset getValueCharset()
value charset
that
will be used by reading HDF5 header.charset
public void read(java.io.PrintWriter debugPS) throws java.io.IOException
java.io.IOException
protected Array convertEnums(java.util.Map<java.lang.Integer,java.lang.String> map, DataType dataType, Array values)
public Group.Builder getRootGroup()
getRootGroup
in interface HdfHeaderIF
public void makeVinfoForDimensionMapVariable(Group.Builder parent, Variable.Builder<?> v)
makeVinfoForDimensionMapVariable
in interface HdfHeaderIF
public java.lang.String readStructMetadata(Variable.Builder<?> structMetadataVar) throws java.io.IOException
readStructMetadata
in interface HdfHeaderIF
java.io.IOException
public int makeIntFromBytes(byte[] bb, int start, int n)
makeIntFromBytes
in interface H5headerIF
public boolean isOffsetLong()
isOffsetLong
in interface H5headerIF
public long readLength() throws java.io.IOException
readLength
in interface H5headerIF
java.io.IOException
public long readOffset() throws java.io.IOException
readOffset
in interface H5headerIF
java.io.IOException
public long readAddress() throws java.io.IOException
readAddress
in interface H5headerIF
java.io.IOException
public byte getSizeLengths()
getSizeLengths
in interface H5headerIF
public int getNumBytesFromMax(long maxNumber)
getNumBytesFromMax
in interface H5headerIF
public long readVariableSizeUnsigned(int size) throws java.io.IOException
readVariableSizeUnsigned
in interface H5headerIF
java.io.IOException
public RandomAccessFile getRandomAccessFile()
getRandomAccessFile
in interface H5headerIF
public long getFileOffset(long address)
getFileOffset
in interface H5headerIF
public byte getSizeOffsets()
getSizeOffsets
in interface H5headerIF
public void close()
public void getEosInfo(java.util.Formatter f) throws java.io.IOException
java.io.IOException
public java.util.List<H5objects.DataObject> getDataObjects()