TrueZIP 6.8.2

de.schlichtherle.util.zip
Interface ZIP


interface ZIP

A package private interface with some useful constants for ZIP compatible files. Public classes must not implement this interface - otherwise the constants become part of the public API.

Version:
$Id: ZIP.java 5e709f50671d 2010/11/05 11:52:07 christian $
Author:
Christian Schlichtherle

Field Summary
static int CFH_MIN_LEN
          The minimum length of the Central File Header record.
static int CFH_SIG
          Central File Header signature.
static int DD_SIG
          Data Descriptor signature.
static String DEFAULT_CHARSET
          The default character set used for entry names and comments in ZIP compatible files.
static int DEFLATED
          Compression method for compressed (deflated) entries.
static byte[] EMPTY
          An empty byte array.
static int EOCDR_MIN_LEN
          The minimum length of the End Of Central Directory record.
static int EOCDR_SIG
          End Of Central Directory Record signature.
static int FLATER_BUF_LENGTH
          The buffer size used for deflating and inflating.
static int LFH_MIN_LEN
          The minimum length of the Local File Header record.
static int LFH_SIG
          Local File Header signature.
static short PLATFORM_FAT
          Windows/DOS/FAT platform.
static short PLATFORM_UNIX
          Unix platform.
static int STORED
          Compression method for uncompressed (stored) entries.
static String UTF8
           
static int ZIP64_EOCDL_LEN
          The length of the Zip64 End Of Central Directory Locator.
static int ZIP64_EOCDL_SIG
          Zip64 End Of Central Directory Locator.
static int ZIP64_EOCDR_MIN_LEN
          The minimum length of the Zip64 End Of Central Directory Record.
static int ZIP64_EOCDR_SIG
          Zip64 End Of Central Directory Record.
static boolean ZIP64_EXT
          This boolean field is set by the system property de.schlichtherle.util.zip.zip64ext.
 

Field Detail

LFH_SIG

static final int LFH_SIG
Local File Header signature.

See Also:
Constant Field Values

DD_SIG

static final int DD_SIG
Data Descriptor signature.

See Also:
Constant Field Values

CFH_SIG

static final int CFH_SIG
Central File Header signature.

See Also:
Constant Field Values

ZIP64_EXT

static final boolean ZIP64_EXT
This boolean field is set by the system property de.schlichtherle.util.zip.zip64ext. If this property is set to true (case is ignored), then ZIP64 extensions are always added when writing a ZIP archive file, regardless of its size. This system property is intended for testing purposes only. During normal operations, it should not be set as many third party tools would not treat the redundant ZIP64 extensions correctly. Note that it's impossible to inhibit ZIP64 extensions.


ZIP64_EOCDR_SIG

static final int ZIP64_EOCDR_SIG
Zip64 End Of Central Directory Record.

See Also:
Constant Field Values

ZIP64_EOCDL_SIG

static final int ZIP64_EOCDL_SIG
Zip64 End Of Central Directory Locator.

See Also:
Constant Field Values

EOCDR_SIG

static final int EOCDR_SIG
End Of Central Directory Record signature.

See Also:
Constant Field Values

LFH_MIN_LEN

static final int LFH_MIN_LEN
The minimum length of the Local File Header record.

See Also:
Constant Field Values

CFH_MIN_LEN

static final int CFH_MIN_LEN
The minimum length of the Central File Header record.

See Also:
Constant Field Values

ZIP64_EOCDR_MIN_LEN

static final int ZIP64_EOCDR_MIN_LEN
The minimum length of the Zip64 End Of Central Directory Record.

See Also:
Constant Field Values

ZIP64_EOCDL_LEN

static final int ZIP64_EOCDL_LEN
The length of the Zip64 End Of Central Directory Locator.

See Also:
Constant Field Values

EOCDR_MIN_LEN

static final int EOCDR_MIN_LEN
The minimum length of the End Of Central Directory record.

See Also:
Constant Field Values

UTF8

static final String UTF8
See Also:
Constant Field Values

DEFAULT_CHARSET

static final String DEFAULT_CHARSET
The default character set used for entry names and comments in ZIP compatible files. This is "UTF-8" for compatibility with Sun's JDK implementation. Note that you should use "IBM437" for ordinary ZIP files instead.

See Also:
Constant Field Values

FLATER_BUF_LENGTH

static final int FLATER_BUF_LENGTH
The buffer size used for deflating and inflating. Optimized for reading and writing flash memory media.

See Also:
Constant Field Values

PLATFORM_FAT

static final short PLATFORM_FAT
Windows/DOS/FAT platform.

See Also:
Constant Field Values

PLATFORM_UNIX

static final short PLATFORM_UNIX
Unix platform.

See Also:
Constant Field Values

STORED

static final int STORED
Compression method for uncompressed (stored) entries.

See Also:
Constant Field Values

DEFLATED

static final int DEFLATED
Compression method for compressed (deflated) entries.

See Also:
Constant Field Values

EMPTY

static final byte[] EMPTY
An empty byte array.


TrueZIP 6.8.2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.