public final class TxzFormat extends Object implements ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>
| Constructor and Description |
|---|
TxzFormat() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.compress.archivers.ArchiveOutputStream |
createArchiveOutputStream(OutputStream s)
Start a new archive.
|
boolean |
equals(Object other) |
int |
hashCode() |
void |
putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
Iterable<String> |
suffixes()
Filename suffixes representing this format (e.g.,
{ ".tar.gz", ".tgz" }).
|
public org.apache.commons.compress.archivers.ArchiveOutputStream createArchiveOutputStream(OutputStream s) throws IOException
ArchiveCommand.FormatcreateArchiveOutputStream in interface ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>s - underlying output stream to which to write the archive.IOException - thrown by the underlying output stream for I/O errorspublic void putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
String path,
FileMode mode,
ObjectLoader loader)
throws IOException
ArchiveCommand.FormatputEntry in interface ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>out - archive object from createArchiveOutputStreampath - full filename relative to the root of the archive
(with trailing '/' for directories)mode - mode (for example FileMode.REGULAR_FILE or
FileMode.SYMLINK)loader - blob object with data for this entry (null for
directories)IOException - thrown by the underlying output stream for I/O errorspublic Iterable<String> suffixes()
ArchiveCommand.Formatsuffixes in interface ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>Copyright © 2015. All rights reserved.