@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class TarDriver extends FsCharsetArchiveDriver<TTarArchiveEntry>
| Modifier and Type | Field and Description |
|---|---|
private IOPoolProvider |
provider |
static Charset |
TAR_CHARSET
The default character set for entry names and comments, which is
"US-ASCII". |
| Constructor and Description |
|---|
TarDriver(IOPoolProvider provider) |
assertEncodable, getCharset, toString, toZipOrTarEntryNamegetClosedIcon, getOpenIcon, getRedundantMetaDataSupport, isFederated, newController, newEntry, newInputStream, newOutputStream, newReadOnlyFilegetPriorityprivate final IOPoolProvider provider
public static final Charset TAR_CHARSET
"US-ASCII".public TarDriver(IOPoolProvider provider)
public InputSocket<?> getInputSocket(FsController<?> controller, FsEntryName name, BitField<FsInputOption> options)
getInputSocket in class FsArchiveDriver<TTarArchiveEntry>public OutputSocket<?> getOutputSocket(FsController<?> controller, FsEntryName name, BitField<FsOutputOption> options, @CheckForNull Entry template)
getOutputSocket in class FsArchiveDriver<TTarArchiveEntry>protected final IOPool<?> getPool()
getPool in class FsArchiveDriver<TTarArchiveEntry>public boolean getRedundantContentSupport()
getRedundantContentSupport in class FsArchiveDriver<TTarArchiveEntry>TarDriver returns
true because when reading a TAR file sequentially,
each TAR entry should "override" any previously read
TAR entry with an equal name.public TTarArchiveEntry newEntry(String name)
public TTarArchiveEntry newEntry(String name, Entry.Type type, Entry template, BitField<FsOutputOption> mknod) throws CharConversionException
newEntry in class FsArchiveDriver<TTarArchiveEntry>CharConversionExceptionpublic TTarArchiveEntry newEntry(String name, TarArchiveEntry template)
public TarInputShop newInputShop(FsModel model, InputSocket<?> input) throws IOException
The implementation in the class TarDriver acquires an input
stream from the given socket and forwards the call to
newTarInputShop(de.schlichtherle.truezip.fs.FsModel, java.io.InputStream).
newInputShop in class FsArchiveDriver<TTarArchiveEntry>IOExceptionpublic OutputShop<TTarArchiveEntry> newOutputShop(FsModel model, OutputSocket<?> output, InputShop<TTarArchiveEntry> source) throws IOException
The implementation in the class TarDriver acquires an output
stream from the given socket, forwards the call to
newTarOutputShop(de.schlichtherle.truezip.fs.FsModel, java.io.OutputStream, de.schlichtherle.truezip.fs.archive.tar.TarInputShop) and wraps the result in a new
FsMultiplexedOutputShop.
newOutputShop in class FsArchiveDriver<TTarArchiveEntry>IOExceptionprotected TarInputShop newTarInputShop(FsModel model, InputStream in) throws IOException
IOExceptionprotected TarOutputShop newTarOutputShop(FsModel model, OutputStream out, TarInputShop source) throws IOException
IOExceptionCopyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.