public final class TgzFormat extends BaseFormat implements ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>
Constructor and Description |
---|
TgzFormat() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.compress.archivers.ArchiveOutputStream |
createArchiveOutputStream(OutputStream s)
Start a new archive.
|
org.apache.commons.compress.archivers.ArchiveOutputStream |
createArchiveOutputStream(OutputStream s,
Map<String,Object> o)
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" }).
|
applyFormatOptions
public org.apache.commons.compress.archivers.ArchiveOutputStream createArchiveOutputStream(OutputStream s) throws IOException
ArchiveCommand.Format
createArchiveOutputStream
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 org.apache.commons.compress.archivers.ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map<String,Object> o) throws IOException
ArchiveCommand.Format
createArchiveOutputStream
in interface ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>
s
- underlying output stream to which to write the archive.o
- options to apply to the underlying output stream. Keys are
option names and values are option values.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.Format
putEntry
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.Format
suffixes
in interface ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>
Copyright © 2015 Eclipse JGit Project. All rights reserved.