Class LZMA2Decoder
java.lang.Object
org.apache.commons.compress.archivers.sevenz.CoderBase
org.apache.commons.compress.archivers.sevenz.LZMA2Decoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) InputStream
decode
(String archiveName, InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb) (package private) OutputStream
encode
(OutputStream out, Object opts) private int
getDictionarySize
(Coder coder) private int
getDictSize
(Object opts) private org.tukaani.xz.LZMA2Options
getOptions
(Object opts) (package private) byte[]
getOptionsAsProperties
(Object opts) (package private) Object
getOptionsFromCoder
(Coder coder, InputStream in) private int
numberOptionOrDefault
(Object opts) Methods inherited from class org.apache.commons.compress.archivers.sevenz.CoderBase
canAcceptOptions, numberOptionOrDefault
-
Constructor Details
-
LZMA2Decoder
LZMA2Decoder()
-
-
Method Details
-
decode
InputStream decode(String archiveName, InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb) throws IOException - Specified by:
decode
in classCoderBase
- Returns:
- a stream that reads from in using the configured coder and password.
- Throws:
IOException
-
encode
- Overrides:
encode
in classCoderBase
- Returns:
- a stream that writes to out using the given configuration.
- Throws:
IOException
-
getOptionsAsProperties
- Overrides:
getOptionsAsProperties
in classCoderBase
- Returns:
- property-bytes to write in a Folder block
-
getOptionsFromCoder
- Overrides:
getOptionsFromCoder
in classCoderBase
- Returns:
- configuration options that have been used to create the given InputStream from the given Coder
- Throws:
IOException
-
getDictSize
-
getDictionarySize
- Throws:
IOException
-
getOptions
- Throws:
IOException
-
numberOptionOrDefault
-