Top Constructors Methods
org.apache.commons.compress.archivers.sevenz

pack-priv final Class LZMADecoder

extends AbstractCoder
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, org.apache.commons.compress.MemoryLimitException, org.apache.commons.compress.utils.ByteUtils, .FlushShieldFilterOutputStream, org.tukaani.xz.LZMA2Options, .LZMAInputStream, .LZMAOutputStream

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv InputStream
decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb)

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.
pack-priv OutputStream
encode(final OutputStream out, final Object opts)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.
private int
getDictionarySize(final Coder coder)

private LZMA2Options
getOptions(final Object opts)

pack-priv byte[]
getOptionsAsProperties(final Object opts)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.getOptionsAsProperties.

Gets property bytes to write in a Folder block.
pack-priv Object
getOptionsFromCoder(final Coder coder, final InputStream in)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.getOptionsFromCoder.

Gets configuration options that have been used to create the given InputStream from the given Coder.
private int
Inherited from org.apache.commons.compress.archivers.sevenz.AbstractCoder:
isOptionInstancetoInt

Constructor Detail

LZMADecoderback to summary
pack-priv LZMADecoder()

Method Detail

decodeback to summary
pack-priv InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb) throws IOException

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.

Returns:InputStream

a stream that reads from in using the configured coder and password.

Annotations
@Override
encodeback to summary
pack-priv OutputStream encode(final OutputStream out, final Object opts) throws IOException

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.

Returns:OutputStream

a stream that writes to out using the given configuration.

Annotations
@Override
Exceptions
IOException:
Optionally thrown by subclassses.
getDictionarySizeback to summary
private int getDictionarySize(final Coder coder) throws IllegalArgumentException
getOptionsback to summary
private LZMA2Options getOptions(final Object opts) throws IOException
getOptionsAsPropertiesback to summary
pack-priv byte[] getOptionsAsProperties(final Object opts) throws IOException

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.getOptionsAsProperties.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.getOptionsAsProperties.

Gets property bytes to write in a Folder block.

Returns:byte[]

property bytes to write in a Folder block.

Annotations
@Override
Exceptions
IOException:
Optionally thrown by subclassses.
getOptionsFromCoderback to summary
pack-priv Object getOptionsFromCoder(final Coder coder, final InputStream in) throws IOException

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.getOptionsFromCoder.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.getOptionsFromCoder.

Gets configuration options that have been used to create the given InputStream from the given Coder.

Returns:Object

configuration options that have been used to create the given InputStream from the given Coder

Annotations
@Override
Exceptions
IOException:
Optionally thrown by subclassses.
numberOptionOrDefaultback to summary
private int numberOptionOrDefault(final Object opts)