public class N3headerNew extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debugHeaderSize |
static boolean |
disallowFileTruncation |
protected RandomAccessFile |
raf |
| 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
protected RandomAccessFile raf
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.