public class Archiver
extends java.lang.Object
Constructor and Description |
---|
Archiver() |
Modifier and Type | Method and Description |
---|---|
void |
create(ArchiveOutputStream target,
java.io.File directory)
Creates an archive
target by recursively including all
files and directories in directory . |
void |
create(SevenZOutputFile target,
java.io.File directory)
Creates an archive
target by recursively including all
files and directories in directory . |
void |
create(java.lang.String format,
java.io.File target,
java.io.File directory)
Creates an archive
target using the format format by recursively including all files and directories in
directory . |
void |
create(java.lang.String format,
java.io.OutputStream target,
java.io.File directory)
Creates an archive
target using the format format by recursively including all files and directories in
directory . |
void |
create(java.lang.String format,
java.nio.channels.SeekableByteChannel target,
java.io.File directory)
Creates an archive
target using the format format by recursively including all files and directories in
directory . |
public void create(java.lang.String format, java.io.File target, java.io.File directory) throws java.io.IOException, ArchiveException
target
using the format format
by recursively including all files and directories in
directory
.format
- the archive format. This uses the same format as
accepted by ArchiveStreamFactory
.target
- the file to write the new archive to.directory
- the directory that contains the files to archive.java.io.IOException
- if an I/O error occursArchiveException
- if the archive cannot be created for other reasonspublic void create(java.lang.String format, java.io.OutputStream target, java.io.File directory) throws java.io.IOException, ArchiveException
target
using the format format
by recursively including all files and directories in
directory
.format
- the archive format. This uses the same format as
accepted by ArchiveStreamFactory
.target
- the stream to write the new archive to.directory
- the directory that contains the files to archive.java.io.IOException
- if an I/O error occursArchiveException
- if the archive cannot be created for other reasonspublic void create(java.lang.String format, java.nio.channels.SeekableByteChannel target, java.io.File directory) throws java.io.IOException, ArchiveException
target
using the format format
by recursively including all files and directories in
directory
.format
- the archive format. This uses the same format as
accepted by ArchiveStreamFactory
.target
- the channel to write the new archive to.directory
- the directory that contains the files to archive.java.io.IOException
- if an I/O error occursArchiveException
- if the archive cannot be created for other reasonspublic void create(ArchiveOutputStream target, java.io.File directory) throws java.io.IOException, ArchiveException
target
by recursively including all
files and directories in directory
.target
- the stream to write the new archive to.directory
- the directory that contains the files to archive.java.io.IOException
- if an I/O error occursArchiveException
- if the archive cannot be created for other reasonspublic void create(SevenZOutputFile target, java.io.File directory) throws java.io.IOException
target
by recursively including all
files and directories in directory
.target
- the file to write the new archive to.directory
- the directory that contains the files to archive.java.io.IOException
- if an I/O error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"