public class N3headerNew extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debugHeaderSize |
static boolean |
disallowFileTruncation |
| Modifier | Constructor and Description |
|---|---|
|
N3headerNew() |
protected |
N3headerNew(N3iospNew n3iospNew) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getByteOrder()
Return the byte order that will be used by
reading file. |
protected Charset |
getValueCharset()
Return defined
value charset that
will be used by reading HDF3 header. |
protected boolean |
isMagicBytes(byte[] bytes)
Check if the given bytes correspond to
magic bytes of the header. |
static boolean |
isValidFile(RandomAccessFile raf) |
public static boolean disallowFileTruncation
public static boolean debugHeaderSize
public N3headerNew()
protected N3headerNew(N3iospNew n3iospNew)
public static boolean isValidFile(RandomAccessFile raf) throws IOException
IOExceptionprotected Charset getValueCharset()
value charset that
will be used by reading HDF3 header.charsetprotected int getByteOrder()
reading file.big endian or
little endian)protected boolean isMagicBytes(byte[] bytes)
magic bytes of the header.bytes - given bytes.true if the given bytes correspond to
magic bytes of the header. Otherwise false.