Uses of Interface
org.apache.commons.compress.archivers.examples.CloseableConsumer
Package
Description
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
Modifier and TypeFieldDescriptionstatic final CloseableConsumer
CloseableConsumer.CLOSING_CONSUMER
Closes the passed in Closeable immediately.static final CloseableConsumer
CloseableConsumer.NULL_CONSUMER
Ignores the passed in Closeable.Modifier and TypeMethodDescriptionvoid
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, CloseableConsumer closeableConsumer) Creates an archivetarget
using the formatformat
by recursively including all files and directories indirectory
.void
Expander.expand
(InputStream archive, File targetDirectory, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.void
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, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.void
Expander.expand
(String format, SeekableByteChannel archive, Path targetDirectory, CloseableConsumer closeableConsumer) Expandsarchive
intotargetDirectory
.