@NotThreadSafe public class TarOutputShop extends TarArchiveOutputStream implements OutputShop<TarDriverEntry>
Because the TAR file format needs to know each entry's length in advance,
entries from an unknown source are actually written to temp files and copied
to the underlying TarArchiveOutputStream upon a call to their
OutputStream.close() method.
Note that this implies that the close() method may fail with
an IOException.
If the size of an entry is known in advance it's directly written to the
underlying TarArchiveOutputStream instead.
TarInputShopBIGNUMBER_ERROR, BIGNUMBER_POSIX, BIGNUMBER_STAR, LONGFILE_ERROR, LONGFILE_GNU, LONGFILE_POSIX, LONGFILE_TRUNCATE| Constructor and Description |
|---|
TarOutputShop(TarDriver driver,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
TarDriverEntry |
getEntry(String name) |
OutputSocket<TarDriverEntry> |
getOutputSocket(TarDriverEntry local) |
int |
getSize() |
Iterator<TarDriverEntry> |
iterator() |
close, closeArchiveEntry, createArchiveEntry, finish, flush, getBytesWritten, getCount, getRecordSize, putArchiveEntry, setAddPaxHeadersForNonAsciiNames, setBigNumberMode, setLongFileMode, writecanWriteEntryData, count, count, writewriteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose@CreatesObligation public TarOutputShop(TarDriver driver, @WillCloseWhenClosed OutputStream out)
@CheckForNull public TarDriverEntry getEntry(String name)
getEntry in interface EntryContainer<TarDriverEntry>public OutputSocket<TarDriverEntry> getOutputSocket(TarDriverEntry local)
getOutputSocket in interface OutputService<TarDriverEntry>public int getSize()
getSize in interface EntryContainer<TarDriverEntry>public Iterator<TarDriverEntry> iterator()
iterator in interface EntryContainer<TarDriverEntry>iterator in interface OutputService<TarDriverEntry>iterator in interface Iterable<TarDriverEntry>Copyright © 2005–2016 Schlichtherle IT Services. All rights reserved.