T - type representing an archive being created.public static interface ArchiveCommand.Format<T extends java.io.Closeable>
| Modifier and Type | Method and Description |
|---|---|
T |
createArchiveOutputStream(java.io.OutputStream s)
Start a new archive.
|
void |
putEntry(T out,
java.lang.String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
java.lang.Iterable<java.lang.String> |
suffixes()
Filename suffixes representing this format (e.g.,
{ ".tar.gz", ".tgz" }).
|
T createArchiveOutputStream(java.io.OutputStream s) throws java.io.IOException
s - underlying output stream to which to write the archive.java.io.IOException - thrown by the underlying output stream for I/O errorsvoid putEntry(T out, java.lang.String path, FileMode mode, ObjectLoader loader) throws java.io.IOException
out - archive object from createArchiveOutputStreampath - full filename relative to the root of the archivemode - mode (for example FileMode.REGULAR_FILE or
FileMode.SYMLINK)loader - blob object with data for this entryjava.io.IOException - thrown by the underlying output stream for I/O errorsjava.lang.Iterable<java.lang.String> suffixes()
Copyright © 2013. All Rights Reserved.