# Uses of Interface
org.apache.commons.compress.archivers.examples.CloseableConsumer

Packages that use CloseableConsumer
Package
Description
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 CloseableConsumer in org.apache.commons.compress.archivers.examples

  Fields in org.apache.commons.compress.archivers.examples declared as CloseableConsumer
  Modifier and Type
  Field
  Description
  `static final CloseableConsumer`
  CloseableConsumer.`CLOSING_CONSUMER`
  Closes the passed in Closeable immediately.
  `static final CloseableConsumer`
  CloseableConsumer.`NULL_CONSUMER`
  Completely ignores the passed in Closeable.
  Methods in org.apache.commons.compress.archivers.examples with parameters of type CloseableConsumer
  Modifier and Type
  Method
  Description
  `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, CloseableConsumer closeableConsumer)`
  Creates an archive `target` using the format `format` by recursively including all files and directories in `directory`.
  `void`
  Expander.`expand(InputStream archive, File targetDirectory, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.
  `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, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.
  `void`
  Expander.`expand(String format, SeekableByteChannel archive, Path targetDirectory, CloseableConsumer closeableConsumer)`
  Expands `archive` into `targetDirectory`.