# Uses of Class
org.apache.commons.compress.archivers.ArchiveException

Packages that use ArchiveException
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.arj
Provides stream classes for reading archives using the ARJ 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.examples
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

  Subclasses of ArchiveException in org.apache.commons.compress.archivers
  Modifier and Type
  Class
  Description
  `class`
  `StreamingNotSupportedException`
  Exception thrown by ArchiveStreamFactory if a format is requested/detected that doesn't support streaming.
  Methods in org.apache.commons.compress.archivers that throw ArchiveException
  Modifier and Type
  Method
  Description
  `<I extends ArchiveInputStream<? extends ArchiveEntry>>
  I`
  ArchiveStreamFactory.`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>>
  I`
  ArchiveStreamFactory.`createArchiveInputStream(String archiverName, InputStream in)`
  Creates an archive input stream from an archiver name and an input stream.
  `<I extends ArchiveInputStream<? extends ArchiveEntry>>
  I`
  ArchiveStreamFactory.`createArchiveInputStream(String archiverName, InputStream in, String actualEncoding)`
  `<I extends ArchiveInputStream<? extends ArchiveEntry>>
  I`
  ArchiveStreamProvider.`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>>
  O`
  ArchiveStreamFactory.`createArchiveOutputStream(String archiverName, OutputStream out)`
  Creates an archive output stream from an archiver name and an output stream.
  `<O extends ArchiveOutputStream<? extends ArchiveEntry>>
  O`
  ArchiveStreamFactory.`createArchiveOutputStream(String archiverName, OutputStream out, String actualEncoding)`
  `<O extends ArchiveOutputStream<? extends ArchiveEntry>>
  O`
  ArchiveStreamProvider.`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 Archiver
  `static void`
  Lister.`main(String... args)`
  Runs this class from the command line.

- ## Uses of ArchiveException in org.apache.commons.compress.archivers.arj

  Constructors in org.apache.commons.compress.archivers.arj that throw ArchiveException
  Modifier
  Constructor
  Description
  ``
  `ArjArchiveInputStream(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

  Constructors in org.apache.commons.compress.archivers.dump that throw ArchiveException
  Modifier
  Constructor
  Description
  ``
  `DumpArchiveInputStream(InputStream is)`
  Constructor 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

  Methods in org.apache.commons.compress.archivers.examples that throw ArchiveException
  Modifier and Type
  Method
  Description
  `void`
  Archiver.`create(String format, File target, File directory)`
  Creates an archive `target` using the format `format` by recursively including all files and directories in `directory`.
  `void`
  Archiver.`create(String format, OutputStream target, File directory)`
  Deprecated.
  this method leaks resources
  `void`
  Archiver.`create(String format, OutputStream target, File directory, CloseableConsumer closeableConsumer)`
  Creates an archive `target` using the format `format` by recursively including all files and directories in `directory`.
  `void`
  Archiver.`create(String format, SeekableByteChannel target, File directory)`
  Deprecated.
  this method leaks resources
  `void`
  Archiver.`create(String format, SeekableByteChannel target, File directory, CloseableConsumer closeableConsumer)`
  Creates an archive `target` using the format `format` by recursively including all files and directories in `directory`.
  `void`
  Archiver.`create(String format, Path target, Path directory)`
  Creates an archive `target` using the format `format` by recursively including all files and directories in `directory`.
  `void`
  Expander.`expand(File archive, File targetDirectory)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(InputStream archive, File targetDirectory)`
  Deprecated.
  this method leaks resources
  `void`
  Expander.`expand(InputStream archive, File targetDirectory, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(String format, File archive, File targetDirectory)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(String format, InputStream archive, File targetDirectory)`
  Deprecated.
  this method leaks resources
  `void`
  Expander.`expand(String format, InputStream archive, File targetDirectory, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(String format, InputStream archive, Path targetDirectory, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(String format, SeekableByteChannel archive, File targetDirectory)`
  Deprecated.
  this method leaks resources
  `void`
  Expander.`expand(String format, SeekableByteChannel archive, File targetDirectory, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(String format, SeekableByteChannel archive, Path targetDirectory, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(String format, Path archive, Path targetDirectory)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(Path archive, Path targetDirectory)`
  Expands `archive` into `targetDirectory`.