java.lang.Object
kala.compress.archivers.sevenz.AbstractCoder
kala.compress.archivers.sevenz.LZMADecoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) InputStreamdecode(String archiveName, 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) OutputStreamencode(OutputStream out, Object opts) Encodes using a stream that writes to out using the given configuration.private intgetDictionarySize(Coder coder) private org.tukaani.xz.LZMA2OptionsgetOptions(Object opts) (package private) byte[]getOptionsAsProperties(Object opts) Gets property bytes to write in a Folder block.(package private) ObjectgetOptionsFromCoder(Coder coder, InputStream in) Gets configuration options that have been used to create the given InputStream from the given Coder.private intnumberOptionOrDefault(Object opts) Methods inherited from class kala.compress.archivers.sevenz.AbstractCoder
isOptionInstance, toInt
-
Constructor Details
-
LZMADecoder
LZMADecoder()
-
-
Method Details
-
decode
InputStream decode(String archiveName, InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb) throws IOException Description 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:
IOException
-
encode
Description 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:
IOException- Optionally thrown by subclassses.
-
getDictionarySize
- Throws:
IllegalArgumentException
-
getOptions
- Throws:
IOException
-
getOptionsAsProperties
Description 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:
IOException- Optionally thrown by subclassses.
-
getOptionsFromCoder
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:
IOException- Optionally thrown by subclassses.
-
numberOptionOrDefault
-