public class GZIPFExtraRecord extends Object implements GZIPConstants
BYTES_IN_INT, BYTES_IN_SHORT, GZIP_COMPRESSION_METHOD_DEFLATE, GZIP_COMPRESSION_METHOD_IDX, GZIP_FEXTRA_LENGTH_BYTES, GZIP_FEXTRA_LENGTH_IDX, GZIP_FEXTRA_NAME_BYTES, GZIP_FEXTRA_NAME_IDX, GZIP_FEXTRA_VALUE_IDX, GZIP_FEXTRA_VALUE_MAX_LENGTH, GZIP_FLAG_FCOMMENT, GZIP_FLAG_FEXTRA, GZIP_FLAG_FHCRC, GZIP_FLAG_FNAME, GZIP_FLAG_FTEXT, GZIP_FLAG_IDX, GZIP_FLAG_VALID_BITS, GZIP_FOOTER_BYTES, GZIP_MAGIC_ONE, GZIP_MAGIC_ONE_IDX, GZIP_MAGIC_TWO, GZIP_MAGIC_TWO_IDX, GZIP_MTIME_IDX, GZIP_MTIME_LENGTH, GZIP_OS_IDX, GZIP_OS_UNIX, GZIP_STATIC_FOOTER_SIZE, GZIP_STATIC_HEADER_SIZE, GZIP_XFL_IDX, LX_RECORD, LX_RECORD_VALUE, NO_BYTES_IN_STREAM, SL_RECORD| Constructor and Description |
|---|
GZIPFExtraRecord() |
GZIPFExtraRecord(byte[] name,
byte[] value) |
GZIPFExtraRecord(byte[] name,
long intVal) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getName() |
byte[] |
getValue() |
int |
length() |
boolean |
matchesName(byte[] name) |
int |
read(byte[] buf,
int offset) |
int |
read(InputStream is,
int maxRead) |
void |
setValue(byte[] value) |
void |
writeTo(byte[] buf,
int offset) |
void |
writeTo(OutputStream os) |
public GZIPFExtraRecord()
public GZIPFExtraRecord(byte[] name,
long intVal)
throws GZIPFormatException
GZIPFormatExceptionpublic GZIPFExtraRecord(byte[] name,
byte[] value)
throws GZIPFormatException
GZIPFormatExceptionpublic boolean matchesName(byte[] name)
public byte[] getName()
public byte[] getValue()
public void setValue(byte[] value)
public int length()
public void writeTo(byte[] buf,
int offset)
public void writeTo(OutputStream os) throws IOException
IOExceptionpublic int read(InputStream is, int maxRead) throws IOException
IOExceptionpublic int read(byte[] buf,
int offset)
throws GZIPFormatException,
IOException
GZIPFormatExceptionIOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.