org.apache.commons.compress.archivers.tar
public class TarUtils extends Object
Version: $Revision: 155439 $ $Date: 2006-08-28 08:10:02 +0200 (Mon, 28 Aug 2006) $
Method Summary | |
---|---|
static long | computeCheckSum(byte[] buffer)
Compute the checksum of a tar entry header.
|
static int | getCheckSumOctalBytes(long value, byte[] buf, int offset, int length)
Parse the checksum octal integer from a header buffer.
|
static int | getLongOctalBytes(long value, byte[] buf, int offset, int length)
Parse an octal long integer from a header buffer.
|
static int | getNameBytes(StringBuffer name, byte[] buffer, int offset, int length)
Determine the number of bytes in an entry name.
|
static int | getOctalBytes(long value, byte[] buffer, int offset, int length)
Parse an octal integer from a header buffer.
|
static StringBuffer | parseName(byte[] header, int offset, int length)
Parse an entry name from a header buffer.
|
static long | parseOctal(byte[] header, int offset, int length)
Parse an octal string from a header buffer. |
Parameters: buffer The tar entry's header buffer.
Returns: The computed checksum.
Parameters: offset The offset into the buffer from which to parse. length The number of header bytes to parse. value Description of Parameter buf Description of Parameter
Returns: The integer value of the entry's checksum.
Parameters: offset The offset into the buffer from which to parse. length The number of header bytes to parse. value Description of Parameter buf Description of Parameter
Returns: The long value of the octal bytes.
Parameters: offset The offset into the buffer from which to parse. length The number of header bytes to parse. name Description of Parameter buffer Description of Parameter
Returns: The number of bytes in a header's entry name.
Parameters: offset The offset into the buffer from which to parse. length The number of header bytes to parse.
Returns: The integer value of the octal bytes.
Parameters: header The header buffer from which to parse. offset The offset into the buffer from which to parse. length The number of header bytes to parse.
Returns: The header's entry name.
Parameters: header The header buffer from which to parse. offset The offset into the buffer from which to parse. length The number of header bytes to parse.
Returns: The long value of the octal string.