| Constructor and Description | 
|---|
| Archiver() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | create(ArchiveOutputStream target,
      File directory)Creates an archive  targetby recursively including all
 files and directories indirectory. | 
| void | create(SevenZOutputFile target,
      File directory)Creates an archive  targetby recursively including all
 files and directories indirectory. | 
| void | create(String format,
      File target,
      File directory)Creates an archive  targetusing the formatformatby recursively including all files and directories indirectory. | 
| void | create(String format,
      OutputStream target,
      File directory)Creates an archive  targetusing the formatformatby recursively including all files and directories indirectory. | 
| void | create(String format,
      SeekableByteChannel target,
      File directory)Creates an archive  targetusing the formatformatby recursively including all files and directories indirectory. | 
public Archiver()
public void create(String format, File target, File directory) throws 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.IOException - if an I/O error occursArchiveException - if the archive cannot be created for other reasonspublic void create(String format, OutputStream target, File directory) throws 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.IOException - if an I/O error occursArchiveException - if the archive cannot be created for other reasonspublic void create(String format, SeekableByteChannel target, File directory) throws 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.IOException - if an I/O error occursArchiveException - if the archive cannot be created for other reasonspublic void create(ArchiveOutputStream target, File directory) throws 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.IOException - if an I/O error occursArchiveException - if the archive cannot be created for other reasonspublic void create(SevenZOutputFile target, File directory) throws 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.IOException - if an I/O error occursCopyright © 2018 The Apache Software Foundation. All rights reserved.