@Immutable public class TarXZDriver extends TarDriver
Subclasses must be thread-safe and should be immutable!
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE
The buffer size used for reading and writing.
|
TAR_CHARSET
Constructor and Description |
---|
TarXZDriver(IOPoolProvider provider) |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize()
Returns the size of the I/O buffer.
|
OutputSocket<?> |
getOutputSocket(FsController<?> controller,
FsEntryName name,
BitField<FsOutputOption> options,
Entry template)
|
int |
getPreset()
Returns the compression level to use when writing an XZ output stream.
|
protected TarInputShop |
newTarInputShop(FsModel model,
InputStream in) |
protected TarOutputShop |
newTarOutputShop(FsModel model,
OutputStream out,
TarInputShop source) |
getInputSocket, getPool, getRedundantContentSupport, newEntry, newEntry, newEntry, newInputShop, newOutputShop
assertEncodable, getCharset, toString, toZipOrTarEntryName
getRedundantMetaDataSupport, isFederated, newController, newController, newEntry
getPriority
public static final int BUFFER_SIZE
public TarXZDriver(IOPoolProvider provider)
public int getBufferSize()
The implementation in the class TarXZDriver
returns
BUFFER_SIZE
.
public OutputSocket<?> getOutputSocket(FsController<?> controller, FsEntryName name, BitField<FsOutputOption> options, @CheckForNull Entry template)
getOutputSocket
in class TarDriver
controller
- the controller to use for writing an artifact of this
driver.name
- the entry name.options
- the options to use.template
- the template to use.public int getPreset()
The implementation in the class TarXZDriver
returns
LZMA2Options.PRESET_DEFAULT
.
protected TarInputShop newTarInputShop(FsModel model, InputStream in) throws IOException
newTarInputShop
in class TarDriver
IOException
protected TarOutputShop newTarOutputShop(FsModel model, OutputStream out, TarInputShop source) throws IOException
newTarOutputShop
in class TarDriver
IOException
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.