@Immutable public class TarBZip2Driver extends TarDriver
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
TAR_CHARSET| Constructor and Description |
|---|
TarBZip2Driver(IOPoolProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferSize()
Returns the size of the I/O buffer.
|
int |
getLevel()
Returns the compression level to use when writing a BZIP2 output stream.
|
OutputSocket<?> |
getOutputSocket(FsController<?> controller,
FsEntryName name,
BitField<FsOutputOption> options,
Entry template)
|
protected TarInputShop |
newTarInputShop(FsModel model,
InputStream in)
Returns a newly created and verified
BZip2CompressorInputStream. |
protected TarOutputShop |
newTarOutputShop(FsModel model,
OutputStream out,
TarInputShop source) |
getInputSocket, getPool, getRedundantContentSupport, newEntry, newEntry, newEntry, newInputShop, newOutputShopassertEncodable, getCharset, toString, toZipOrTarEntryNamegetClosedIcon, getOpenIcon, getRedundantMetaDataSupport, isFederated, newController, newEntry, newInputStream, newOutputStream, newReadOnlyFilegetPrioritypublic static final int BUFFER_SIZE
public TarBZip2Driver(IOPoolProvider provider)
public int getBufferSize()
The implementation in the class TarBZip2Driver returns
BUFFER_SIZE.
public int getLevel()
The implementation in the class TarBZip2Driver returns
BZip2CompressorOutputStream.MAX_BLOCKSIZE.
public OutputSocket<?> getOutputSocket(FsController<?> controller, FsEntryName name, BitField<FsOutputOption> options, @CheckForNull Entry template)
getOutputSocket in class TarDriverprotected TarInputShop newTarInputShop(FsModel model, InputStream in) throws IOException
BZip2CompressorInputStream.
This method performs a simple verification by computing the checksum
for the first record only.
This method is required because the BZip2CompressorInputStream
unfortunately does not do sufficient verification!newTarInputShop in class TarDriverIOExceptionprotected TarOutputShop newTarOutputShop(FsModel model, OutputStream out, TarInputShop source) throws IOException
newTarOutputShop in class TarDriverIOExceptionCopyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.