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

pack-priv final Class LZMA2Decoder

extends AbstractCoder
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, org.apache.commons.compress.MemoryLimitException, org.tukaani.xz.FinishableWrapperOutputStream, .LZMA2InputStream, .LZMA2Options

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 int
getDictSize(final Object opts)

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

LZMA2Decoderback to summary
pack-priv LZMA2Decoder()

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
@SuppressWarnings:resource
@Override
Exceptions
IOException:
Optionally thrown by subclassses.
getDictionarySizeback to summary
private int getDictionarySize(final Coder coder) throws IOException
getDictSizeback to summary
private int getDictSize(final Object opts)
getOptionsback to summary
private LZMA2Options getOptions(final Object opts) throws IOException
getOptionsAsPropertiesback to summary
pack-priv byte[] getOptionsAsProperties(final Object opts)

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
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)