| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: checksumbuffer containing tape segment header buffer)Calculate checksum for buffer. |
| public static int | Returns: the 2-byte entry as an int.The source buffer. buffer, final int Where to start reading. offset)Reads 2-byte integer from buffer. |
| public static int | Returns: the 4-byte entry as an int.The source buffer. buffer, final int Where to start reading. offset)Reads 4-byte integer from buffer. |
| public static long | Returns: the 8-byte entry as a long.The source buffer. buffer, final int Where to start reading. offset)Reads 8-byte integer from buffer. |
| pack-priv static String | decode(final ZipEncoding encoding, final byte[] b, final int offset, final int len)
Decodes a byte array to a string. |
| public static int | Returns: the ino associated with this buffer.The source buffer. buffer)Gets the ino associated with this buffer. |
| public static boolean | Returns: Whether the buffer contains a tape segment header.The source buffer. buffer)Verifies that the buffer contains a tape segment header. |
| DumpArchiveUtil | back to summary |
|---|---|
| private DumpArchiveUtil() Private constructor to prevent instantiation. | |
| calculateChecksum | back to summary |
|---|---|
| public static int calculateChecksum(final byte[] buffer) Calculate checksum for buffer.
| |
| convert16 | back to summary |
|---|---|
| public static int convert16(final byte[] buffer, final int offset) Reads 2-byte integer from buffer.
| |
| convert32 | back to summary |
|---|---|
| public static int convert32(final byte[] buffer, final int offset) Reads 4-byte integer from buffer.
| |
| convert64 | back to summary |
|---|---|
| public static long convert64(final byte[] buffer, final int offset) Reads 8-byte integer from buffer.
| |
| decode | back to summary |
|---|---|
| pack-priv static String decode(final ZipEncoding encoding, final byte[] b, final int offset, final int len) throws IOException Decodes a byte array to a string. | |
| getIno | back to summary |
|---|---|
| public static int getIno(final byte[] buffer) Gets the ino associated with this buffer.
| |
| verify | back to summary |
|---|---|
| public static boolean verify(final byte[] buffer) Verifies that the buffer contains a tape segment header.
| |