public final class Tbz2Format extends BaseFormat implements ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>
Constructor and Description |
---|
Tbz2Format() |
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,
ObjectId tree,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
String path,
FileMode mode,
ObjectLoader loader)
Deprecated.
|
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
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
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 errors@Deprecated public void putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out, String path, FileMode mode, ObjectLoader loader) throws IOException
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 void putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out, ObjectId tree, String path, FileMode mode, ObjectLoader loader) throws IOException
putEntry
in interface ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>
out
- archive object from createArchiveOutputStreamtree
- the tag, commit, or tree object to produce an archive forpath
- 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()
suffixes
in interface ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream>
Copyright © 2017 Eclipse JGit Project. All rights reserved.