Class NestedZipFile
java.lang.Object
java.util.zip.ZipFile
clazzfish.monitor.util.NestedZipFile
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class provides more details about the underlying ZIP file as the
original
ZipFile
class. E.g. it has a useful toString()
implementation which gives you the name of the file. And it allows
you to use nested ZIP files, e.g. ZIP files inside ZIP files.
Originally this class was part of the PatternTesting project.
- Author:
- oboehm
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
Fields inherited from class java.util.zip.ZipFile
OPEN_DELETE, OPEN_READ
-
Constructor Summary
ConstructorsConstructorDescriptionNestedZipFile
(File file) Instantiates a new detailed zip file.NestedZipFile
(File file, int mode) Instantiates a new detailed zip file.NestedZipFile
(File file, int mode, Charset charset) Instantiates a new detailed zip file.NestedZipFile
(File file, Charset charset) Instantiates a new detailed zip file.NestedZipFile
(String name) Instantiates a new detailed zip file.NestedZipFile
(String name, Charset charset) Instantiates a new detailed zip file. -
Method Summary
Methods inherited from class java.util.zip.ZipFile
close, entries, getComment, getEntry, getInputStream, getName, size, stream
-
Field Details
-
LOCSIG
static final long LOCSIG- See Also:
-
EXTSIG
static final long EXTSIG- See Also:
-
CENSIG
static final long CENSIG- See Also:
-
ENDSIG
static final long ENDSIG- See Also:
-
LOCHDR
static final int LOCHDR- See Also:
-
EXTHDR
static final int EXTHDR- See Also:
-
CENHDR
static final int CENHDR- See Also:
-
ENDHDR
static final int ENDHDR- See Also:
-
LOCVER
static final int LOCVER- See Also:
-
LOCFLG
static final int LOCFLG- See Also:
-
LOCHOW
static final int LOCHOW- See Also:
-
LOCTIM
static final int LOCTIM- See Also:
-
LOCCRC
static final int LOCCRC- See Also:
-
LOCSIZ
static final int LOCSIZ- See Also:
-
LOCLEN
static final int LOCLEN- See Also:
-
LOCNAM
static final int LOCNAM- See Also:
-
LOCEXT
static final int LOCEXT- See Also:
-
EXTCRC
static final int EXTCRC- See Also:
-
EXTSIZ
static final int EXTSIZ- See Also:
-
EXTLEN
static final int EXTLEN- See Also:
-
CENVEM
static final int CENVEM- See Also:
-
CENVER
static final int CENVER- See Also:
-
CENFLG
static final int CENFLG- See Also:
-
CENHOW
static final int CENHOW- See Also:
-
CENTIM
static final int CENTIM- See Also:
-
CENCRC
static final int CENCRC- See Also:
-
CENSIZ
static final int CENSIZ- See Also:
-
CENLEN
static final int CENLEN- See Also:
-
CENNAM
static final int CENNAM- See Also:
-
CENEXT
static final int CENEXT- See Also:
-
CENCOM
static final int CENCOM- See Also:
-
CENDSK
static final int CENDSK- See Also:
-
CENATT
static final int CENATT- See Also:
-
CENATX
static final int CENATX- See Also:
-
CENOFF
static final int CENOFF- See Also:
-
ENDSUB
static final int ENDSUB- See Also:
-
ENDTOT
static final int ENDTOT- See Also:
-
ENDSIZ
static final int ENDSIZ- See Also:
-
ENDOFF
static final int ENDOFF- See Also:
-
ENDCOM
static final int ENDCOM- See Also:
-
-
Constructor Details
-
NestedZipFile
Instantiates a new detailed zip file.- Parameters:
name
- the name- Throws:
IOException
- Signals that an I/O exception has occurred.
-
NestedZipFile
Instantiates a new detailed zip file.- Parameters:
file
- a normal file or a nested ZIP file (e.g. "file:/a.jar!/b.jar")- Throws:
IOException
- Signals that an I/O exception has occurred.
-
NestedZipFile
Instantiates a new detailed zip file.- Parameters:
file
- the filemode
- the mode- Throws:
IOException
- Signals that an I/O exception has occurred.
-
NestedZipFile
Instantiates a new detailed zip file.- Parameters:
name
- the namecharset
- the charset- Throws:
IOException
- Signals that an I/O exception has occurred.
-
NestedZipFile
Instantiates a new detailed zip file.- Parameters:
file
- the filecharset
- the charset- Throws:
IOException
- Signals that an I/O exception has occurred.
-
NestedZipFile
Instantiates a new detailed zip file.- Parameters:
file
- the filemode
- the modecharset
- the charset- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-
Method Details
-
toString
-