| Package | Description |
|---|---|
| org.apache.commons.compress.archivers |
Provides a unified API and factories for dealing with archives in different formats.
|
| org.apache.commons.compress.archivers.ar |
Provides stream classes for reading and writing archives using the AR format.
|
| org.apache.commons.compress.archivers.arj |
Provides stream classes for reading archives using the ARJ format.
|
| org.apache.commons.compress.archivers.cpio |
Provides stream classes for reading and writing archives using the CPIO format.
|
| org.apache.commons.compress.archivers.dump |
This package provides stream classes for reading archives using the Unix DUMP format.
|
| org.apache.commons.compress.archivers.jar |
Provides stream classes for reading and writing archives using the ZIP format with some extensions for the special case of JAR archives.
|
| org.apache.commons.compress.archivers.sevenz |
Provides classes for reading and writing archives using the 7z format.
|
| org.apache.commons.compress.archivers.tar |
Provides stream classes for reading and writing archives using the TAR format.
|
| org.apache.commons.compress.archivers.zip |
Provides stream classes for reading and writing archives using the ZIP format.
|
| org.apache.commons.compress.changes |
EXPERIMENTAL support for changesets that are applied to archives.
|
| org.apache.commons.compress.utils |
Provides utilities used internally by the compress library.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArchiveInputStream<E extends ArchiveEntry>
Archive input streams MUST override the
InputStream.read(byte[], int, int) - or ArchiveInputStream.read() -
method so that reading from the stream generates EOF for the end of
data in each entry as well as at the end of the file proper. |
class |
ArchiveOutputStream<E extends ArchiveEntry>
Archive output stream implementations are expected to override the
OutputStream.write(byte[], int, int) method to improve performance. |
| Modifier and Type | Method and Description |
|---|---|
<I extends ArchiveInputStream<? extends ArchiveEntry>> |
ArchiveStreamFactory.createArchiveInputStream(InputStream in)
Create an archive input stream from an input stream, autodetecting the archive type from the first few bytes of the stream.
|
<I extends ArchiveInputStream<? extends ArchiveEntry>> |
ArchiveStreamFactory.createArchiveInputStream(String archiverName,
InputStream in)
Creates an archive input stream from an archiver name and an input stream.
|
<I extends ArchiveInputStream<? extends ArchiveEntry>> |
ArchiveStreamProvider.createArchiveInputStream(String archiverName,
InputStream inputStream,
String encoding)
Creates an archive input stream from an archiver name and an input stream.
|
<I extends ArchiveInputStream<? extends ArchiveEntry>> |
ArchiveStreamFactory.createArchiveInputStream(String archiverName,
InputStream in,
String actualEncoding) |
<O extends ArchiveOutputStream<? extends ArchiveEntry>> |
ArchiveStreamFactory.createArchiveOutputStream(String archiverName,
OutputStream out)
Creates an archive output stream from an archiver name and an output stream.
|
<O extends ArchiveOutputStream<? extends ArchiveEntry>> |
ArchiveStreamProvider.createArchiveOutputStream(String archiverName,
OutputStream outputStream,
String encoding)
Creates an archive output stream from an archiver name and an output stream.
|
<O extends ArchiveOutputStream<? extends ArchiveEntry>> |
ArchiveStreamFactory.createArchiveOutputStream(String archiverName,
OutputStream out,
String actualEncoding) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ArchiveInputStream.canReadEntryData(ArchiveEntry archiveEntry)
Whether this stream is able to read the given entry.
|
boolean |
ArchiveOutputStream.canWriteEntryData(ArchiveEntry archiveEntry)
Whether this stream is able to write the given entry.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArArchiveEntry
Represents an archive entry in the "ar" format.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArjArchiveEntry
An entry in an ARJ archive.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ArjArchiveInputStream.canReadEntryData(ArchiveEntry ae) |
| Modifier and Type | Class and Description |
|---|---|
class |
CpioArchiveEntry
A cpio archive consists of a sequence of files.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DumpArchiveEntry
This class represents an entry in a Dump archive.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JarArchiveEntry
JAR archive entry.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SevenZArchiveEntry
An entry in a 7z archive.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SevenZOutputFile.putArchiveEntry(ArchiveEntry archiveEntry)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TarArchiveEntry
This class represents an entry in a Tar archive.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TarArchiveInputStream.canReadEntryData(ArchiveEntry ae)
Whether this class is able to read the given entry.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ZipArchiveEntry
Extension that adds better handling of extra fields and provides
access to the internal and external file attributes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ZipArchiveInputStream.canReadEntryData(ArchiveEntry ae)
Whether this class is able to read the given entry.
|
boolean |
ZipArchiveOutputStream.canWriteEntryData(ArchiveEntry ae)
Whether this stream is able to write the given entry.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChangeSet<E extends ArchiveEntry>
ChangeSet collects and performs changes to an archive.
|
class |
ChangeSetPerformer<I extends ArchiveInputStream<E>,O extends ArchiveOutputStream<E>,E extends ArchiveEntry>
Performs ChangeSet operations on a stream.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
ArchiveUtils.toString(ArchiveEntry entry)
Generates a string containing the name, isDirectory setting and size of an entry.
|
Copyright © 2002–2025. All rights reserved.