class DumpArchiveUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
DumpArchiveUtil()
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static int |
calculateChecksum(byte[] buffer)
Calculate checksum for buffer.
|
static int |
convert16(byte[] buffer,
int offset)
Read 2-byte integer from buffer.
|
static int |
convert32(byte[] buffer,
int offset)
Read 4-byte integer from buffer.
|
static long |
convert64(byte[] buffer,
int offset)
Read 8-byte integer from buffer.
|
(package private) static java.lang.String |
decode(ZipEncoding encoding,
byte[] b,
int offset,
int len)
Decodes a byte array to a string.
|
static int |
getIno(byte[] buffer)
Get the ino associated with this buffer.
|
static boolean |
verify(byte[] buffer)
Verify that the buffer contains a tape segment header.
|
private DumpArchiveUtil()
public static int calculateChecksum(byte[] buffer)
buffer
- buffer containing tape segment headerpublic static final boolean verify(byte[] buffer)
buffer
- public static final int getIno(byte[] buffer)
buffer
- public static final long convert64(byte[] buffer, int offset)
buffer
- offset
- public static final int convert32(byte[] buffer, int offset)
buffer
- offset
- public static final int convert16(byte[] buffer, int offset)
buffer
- offset
- static java.lang.String decode(ZipEncoding encoding, byte[] b, int offset, int len) throws java.io.IOException
java.io.IOException