@Immutable public class TarXZDriver extends TarDriver
Subclasses must be thread-safe and should be immutable!
TAR_CHARSET
Constructor and Description |
---|
TarXZDriver() |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize()
Returns the size of the I/O buffer.
|
int |
getPreset()
Returns the compression level to use when writing an XZ output stream.
|
protected net.java.truecommons.cio.InputService<TarDriverEntry> |
newInput(FsModel model,
FsInputSocketSource source)
Creates a new input service for reading archive entries for the given
model from the target archive file referenced by source . |
protected net.java.truecommons.cio.OutputService<TarDriverEntry> |
newOutput(FsModel model,
FsOutputSocketSink sink,
net.java.truecommons.cio.InputService<TarDriverEntry> input)
Creates a new input service for writing archive entries for the given
model to the target archive file referenced by sink . |
protected FsOutputSocketSink |
sink(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsController controller,
FsNodeName name)
|
getAddPaxHeaderForNonAsciiNames, getBigNumberMode, getCharset, getLongFileMode, getPool, getRedundantContentSupport, newEntry, newEntry, newEntry, source
checkEncodable, decorate, getRedundantMetaDataSupport, isArchiveDriver, newController, newEntry, newInput, newOutput, normalize, toString
public int getBufferSize()
The implementation in the class TarXZDriver
returns
Streams.BUFFER_SIZE
.
public int getPreset()
The implementation in the class TarXZDriver
returns
LZMA2Options.PRESET_DEFAULT
.
protected net.java.truecommons.cio.InputService<TarDriverEntry> newInput(FsModel model, FsInputSocketSource source) throws IOException
FsArchiveDriver
model
from the target archive file referenced by source
.newInput
in class TarDriver
model
- the file system model.source
- the source for reading the target archive file.IOException
- on any I/O error.FsArchiveDriver.newInput(FsModel, BitField, FsController, FsNodeName)
protected net.java.truecommons.cio.OutputService<TarDriverEntry> newOutput(FsModel model, FsOutputSocketSink sink, net.java.truecommons.cio.InputService<TarDriverEntry> input) throws IOException
FsArchiveDriver
model
to the target archive file referenced by sink
.newOutput
in class TarDriver
model
- the file system model.sink
- the sink for writing the target archive file.input
- the nullable InputService
for the target archive
file.
If not null
, then the target archive file is going to
get updated.
This parameter is guaranteed to be the product of this driver's
factory method
FsArchiveDriver.newInput(FsModel, BitField, FsController, FsNodeName)
.IOException
- on any I/O error.FsArchiveDriver.newOutput(FsModel, BitField, FsController, FsNodeName, InputService)
protected FsOutputSocketSink sink(net.java.truecommons.shed.BitField<FsAccessOption> options, FsController controller, FsNodeName name)
sink
in class TarDriver
options
- the options for accessing the file system node.controller
- the controller to use for writing an artifact of this
driver.name
- the node name.FsArchiveDriver.newOutput(FsModel, BitField, FsController, FsNodeName, InputService)
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.