Path.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final EnumSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | create(final ArchiveOutputStream<?>
the stream to write the new archive to. target, final File the directory that contains the files to archive. directory)Creates an archive |
| public void | create(final ArchiveOutputStream<?>
the stream to write the new archive to. target, final Path the directory that contains the files to archive. directory)Creates an archive |
| public void | create(final ArchiveOutputStream<?>
the stream to write the new archive to. target, final Path the directory that contains the files to archive. directory, final EnumSet<FileVisitOption> linkOptions to configure the traversal of the source fileVisitOptions, final LinkOption... directory.indicating how symbolic links are handled. linkOptions)Creates an archive |
| public void | create(final SevenZOutputFile
the file to write the new archive to. target, final File the directory that contains the files to archive. directory)Creates an archive |
| public void | create(final SevenZOutputFile
the file to write the new archive to. target, final Path the directory that contains the files to archive. directory)Creates an archive |
| public void | create(final String
the archive format. This uses the same format as accepted by format, final File ArchiveStreamFactory.the file to write the new archive to. target, final File the directory that contains the files to archive. directory)Creates an archive |
| public void | create(final String
the archive format. This uses the same format as accepted by format, final OutputStream ArchiveStreamFactory.the stream to write the new archive to. target, final File the directory that contains the files to archive. directory)
Deprecated
this method leaks resources
Creates an archive target using the format format by recursively including all files and directories in directory.
|
| public void | create(final String
the archive format. This uses the same format as accepted by format, final OutputStream ArchiveStreamFactory.the stream to write the new archive to. target, final File the directory that contains the files to archive. directory, final CloseableConsumer is informed about the stream wrapped around the passed in stream closeableConsumer)Creates an archive |
| public void | create(final String
the archive format. This uses the same format as accepted by format, final Path ArchiveStreamFactory.the file to write the new archive to. target, final Path the directory that contains the files to archive. directory)Creates an archive |
| public void | create(final String
the archive format. This uses the same format as accepted by format, final SeekableByteChannel ArchiveStreamFactory.the channel to write the new archive to. target, final File the directory that contains the files to archive. directory)
Deprecated
this method leaks resources
Creates an archive target using the format format by recursively including all files and directories in directory.
|
| public void | create(final String
the archive format. This uses the same format as accepted by format, final SeekableByteChannel ArchiveStreamFactory.the channel to write the new archive to. target, final File the directory that contains the files to archive. directory, final CloseableConsumer is informed about the stream wrapped around the passed in stream closeableConsumer)Creates an archive |
| public void | create(final String
the archive format. This uses the same format as accepted by format, final SeekableByteChannel ArchiveStreamFactory.the channel to write the new archive to. target, final Path the directory that contains the files to archive. directory)Creates an archive |
| private boolean |
| EMPTY_FileVisitOption | back to summary |
|---|---|
| public static final EnumSet<FileVisitOption> EMPTY_FileVisitOption No | |
| Archiver | back to summary |
|---|---|
| public Archiver() | |
| create | back to summary |
|---|---|
| public void create(final ArchiveOutputStream<?> target, final File directory) throws IOException Creates an archive
| |
| create | back to summary |
|---|---|
| public void create(final ArchiveOutputStream<?> target, final Path directory) throws IOException Creates an archive
| |
| create | back to summary |
|---|---|
| public void create(final ArchiveOutputStream<?> target, final Path directory, final EnumSet<FileVisitOption> fileVisitOptions, final LinkOption... linkOptions) throws IOException Creates an archive
| |
| create | back to summary |
|---|---|
| public void create(final SevenZOutputFile target, final File directory) throws IOException Creates an archive
| |
| create | back to summary |
|---|---|
| public void create(final SevenZOutputFile target, final Path directory) throws IOException Creates an archive
| |
| create | back to summary |
|---|---|
| public void create(final String format, final File target, final File directory) throws IOException, ArchiveException Creates an archive
| |
| create | back to summary |
|---|---|
| public void create(final String format, final OutputStream target, final File directory) throws IOException, ArchiveException
Deprecated this method leaks resources Creates an archive
This method creates a wrapper around the target stream which is never closed and thus leaks resources, please use
| |
| create | back to summary |
|---|---|
| public void create(final String format, final OutputStream target, final File directory, final CloseableConsumer closeableConsumer) throws IOException, ArchiveException Creates an archive
This method creates a wrapper around the archive stream and the caller of this method is responsible for closing it - probably at the same time as
closing the stream itself. The caller is informed about the wrapper object via the
| |
| create | back to summary |
|---|---|
| public void create(final String format, final Path target, final Path directory) throws IOException, ArchiveException Creates an archive
| |
| create | back to summary |
|---|---|
| public void create(final String format, final SeekableByteChannel target, final File directory) throws IOException, ArchiveException
Deprecated this method leaks resources Creates an archive
This method creates a wrapper around the target channel which is never closed and thus leaks resources, please use
| |
| create | back to summary |
|---|---|
| public void create(final String format, final SeekableByteChannel target, final File directory, final CloseableConsumer closeableConsumer) throws IOException, ArchiveException Creates an archive
This method creates a wrapper around the archive channel and the caller of this method is responsible for closing it - probably at the same time as
closing the channel itself. The caller is informed about the wrapper object via the
| |
| create | back to summary |
|---|---|
| public void create(final String format, final SeekableByteChannel target, final Path directory) throws IOException Creates an archive
| |
| prefersSeekableByteChannel | back to summary |
|---|---|
| private boolean prefersSeekableByteChannel(final String format) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| private final LinkOption[] | |
| private final O |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public FileVisitResult | preVisitDirectory(final Path
a reference to the directory dir, final BasicFileAttributes the directory's basic attributes attrs)Overrides java. Implements java. |
| protected FileVisitResult | |
| public FileVisitResult | visitFile(final Path
a reference to the file file, final BasicFileAttributes the file's basic attributes attrs)Overrides java. Implements java. |
| directory | back to summary |
|---|---|
| private final Path directory | |
| linkOptions | back to summary |
|---|---|
| private final LinkOption[] linkOptions | |
| target | back to summary |
|---|---|
| private final O target | |
| ArchiverFileVisitor | back to summary |
|---|---|
| private ArchiverFileVisitor(final O target, final Path directory, final LinkOption... linkOptions) | |
| preVisitDirectory | back to summary |
|---|---|
| public FileVisitResult preVisitDirectory(final Path dir, final BasicFileAttributes attrs) throws IOException Overrides java. Implements java. Doc from java. Invoked for a directory before entries in the directory are visited. Unless overridden, this method returns
| |
| visit | back to summary |
|---|---|
| protected FileVisitResult visit(final Path path, final BasicFileAttributes attrs, final boolean isFile) throws IOException | |
| visitFile | back to summary |
|---|---|
| public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) throws IOException Overrides java. Implements java. Doc from java. Invoked for a file in a directory. Unless overridden, this method returns
| |