Uses of Class
org.apache.commons.compress.archivers.ArchiveException
Package
Description
Provides a unified API and factories for dealing with archives in different formats.
Provides stream classes for reading archives using the ARJ format.
This package provides stream classes for reading archives using the UNIX DUMP format.
Contains example code that is not guaranteed to provide a stable API across releases of Commons Compress.
-
Uses of ArchiveException in org.apache.commons.compress.archivers
Modifier and TypeClassDescriptionclass
Exception thrown by ArchiveStreamFactory if a format is requested/detected that doesn't support streaming.Modifier and TypeMethodDescription<I extends ArchiveInputStream<? extends ArchiveEntry>>
IArchiveStreamFactory.createArchiveInputStream
(InputStream in) Creates 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>>
IArchiveStreamFactory.createArchiveInputStream
(String archiverName, InputStream in) Creates an archive input stream from an archiver name and an input stream.<I extends ArchiveInputStream<? extends ArchiveEntry>>
IArchiveStreamFactory.createArchiveInputStream
(String archiverName, InputStream in, String actualEncoding) <I extends ArchiveInputStream<? extends ArchiveEntry>>
IArchiveStreamProvider.createArchiveInputStream
(String archiverName, InputStream inputStream, String encoding) Creates an archive input stream from an archiver name and an input stream.<O extends ArchiveOutputStream<? extends ArchiveEntry>>
OArchiveStreamFactory.createArchiveOutputStream
(String archiverName, OutputStream out) Creates an archive output stream from an archiver name and an output stream.<O extends ArchiveOutputStream<? extends ArchiveEntry>>
OArchiveStreamFactory.createArchiveOutputStream
(String archiverName, OutputStream out, String actualEncoding) <O extends ArchiveOutputStream<? extends ArchiveEntry>>
OArchiveStreamProvider.createArchiveOutputStream
(String archiverName, OutputStream outputStream, String encoding) Creates an archive output stream from an archiver name and an output stream.static String
ArchiveStreamFactory.detect
(InputStream in) Try to determine the type of Archiverstatic void
Runs this class from the command line. -
Uses of ArchiveException in org.apache.commons.compress.archivers.arj
ModifierConstructorDescriptionArjArchiveInputStream
(InputStream inputStream) Constructs the ArjInputStream, taking ownership of the inputStream that is passed in, and using the CP437 character encoding.ArjArchiveInputStream
(InputStream inputStream, String charsetName) Constructs the ArjInputStream, taking ownership of the inputStream that is passed in. -
Uses of ArchiveException in org.apache.commons.compress.archivers.dump
ModifierConstructorDescriptionConstructor using the platform's default encoding for file names.DumpArchiveInputStream
(InputStream is, String encoding) Constructs a new instance. -
Uses of ArchiveException in org.apache.commons.compress.archivers.examples
Modifier and TypeMethodDescriptionvoid
Creates an archivetarget
using the formatformat
by recursively including all files and directories indirectory
.void
Archiver.create
(String format, OutputStream target, File directory) Deprecated.this method leaks resourcesvoid
Archiver.create
(String format, OutputStream target, File directory, CloseableConsumer closeableConsumer) Creates an archivetarget
using the formatformat
by recursively including all files and directories indirectory
.void
Archiver.create
(String format, SeekableByteChannel target, File directory) Deprecated.this method leaks resourcesvoid
Archiver.create
(String format, SeekableByteChannel target, File directory, CloseableConsumer closeableConsumer) Creates an archivetarget
using the formatformat
by recursively including all files and directories indirectory
.void
Creates an archivetarget
using the formatformat
by recursively including all files and directories indirectory
.void
Expandsarchive
intotargetDirectory
.void
Expander.expand
(InputStream archive, File targetDirectory) Deprecated.this method leaks resourcesvoid
Expander.expand
(InputStream archive, File targetDirectory, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.void
Expandsarchive
intotargetDirectory
.void
Expander.expand
(String format, InputStream archive, File targetDirectory) Deprecated.this method leaks resourcesvoid
Expander.expand
(String format, InputStream archive, File targetDirectory, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.void
Expander.expand
(String format, InputStream archive, Path targetDirectory, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.void
Expander.expand
(String format, SeekableByteChannel archive, File targetDirectory) Deprecated.this method leaks resourcesvoid
Expander.expand
(String format, SeekableByteChannel archive, File targetDirectory, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.void
Expander.expand
(String format, SeekableByteChannel archive, Path targetDirectory, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.void
Expandsarchive
intotargetDirectory
.void
Expandsarchive
intotargetDirectory
.