- java.lang.Object
-
- kala.compress.archivers.sevenz.AbstractCoder
-
- kala.compress.archivers.sevenz.LZMADecoder
-
final class LZMADecoder extends AbstractCoder
-
-
Constructor Summary
Constructors Constructor Description LZMADecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.io.InputStreamdecode(java.lang.String archiveName, java.io.InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb)Decodes using stream that reads from in using the configured coder and password.(package private) java.io.OutputStreamencode(java.io.OutputStream out, java.lang.Object opts)Encodes using a stream that writes to out using the given configuration.private intgetDictionarySize(Coder coder)private org.tukaani.xz.LZMA2OptionsgetOptions(java.lang.Object opts)(package private) byte[]getOptionsAsProperties(java.lang.Object opts)Gets property bytes to write in a Folder block.(package private) java.lang.ObjectgetOptionsFromCoder(Coder coder, java.io.InputStream in)Gets configuration options that have been used to create the given InputStream from the given Coder.private intnumberOptionOrDefault(java.lang.Object opts)-
Methods inherited from class kala.compress.archivers.sevenz.AbstractCoder
isOptionInstance, toInt
-
-
-
-
Method Detail
-
decode
java.io.InputStream decode(java.lang.String archiveName, java.io.InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb) throws java.io.IOExceptionDescription copied from class:AbstractCoderDecodes using stream that reads from in using the configured coder and password.- Specified by:
decodein classAbstractCoder- Returns:
- a stream that reads from in using the configured coder and password.
- Throws:
java.io.IOException
-
encode
java.io.OutputStream encode(java.io.OutputStream out, java.lang.Object opts) throws java.io.IOExceptionDescription copied from class:AbstractCoderEncodes using a stream that writes to out using the given configuration.- Overrides:
encodein classAbstractCoder- Returns:
- a stream that writes to out using the given configuration.
- Throws:
java.io.IOException- Optionally thrown by subclassses.
-
getDictionarySize
private int getDictionarySize(Coder coder) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
getOptions
private org.tukaani.xz.LZMA2Options getOptions(java.lang.Object opts) throws java.io.IOException- Throws:
java.io.IOException
-
getOptionsAsProperties
byte[] getOptionsAsProperties(java.lang.Object opts) throws java.io.IOExceptionDescription copied from class:AbstractCoderGets property bytes to write in a Folder block.- Overrides:
getOptionsAsPropertiesin classAbstractCoder- Returns:
- property bytes to write in a Folder block.
- Throws:
java.io.IOException- Optionally thrown by subclassses.
-
getOptionsFromCoder
java.lang.Object getOptionsFromCoder(Coder coder, java.io.InputStream in) throws java.io.IOException
Description copied from class:AbstractCoderGets configuration options that have been used to create the given InputStream from the given Coder.- Overrides:
getOptionsFromCoderin classAbstractCoder- Returns:
- configuration options that have been used to create the given InputStream from the given Coder
- Throws:
java.io.IOException- Optionally thrown by subclassses.
-
numberOptionOrDefault
private int numberOptionOrDefault(java.lang.Object opts)
-
-