Class Lzma
- java.lang.Object
-
- com.badlogic.gdx.utils.compression.Lzma
-
public class Lzma extends java.lang.Object
Adapted from LZMA SDK version 9.22. This was modified to be used directly on streams, rather than via the command line as in the LZMA SDK. We only currently allow the default LZMA options to be used, as we know it works on for our target usage.
-
-
Constructor Summary
Constructors Constructor Description Lzma()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
compress(java.io.InputStream in, java.io.OutputStream out)
Compresses the givenInputStream
into the givenOutputStream
.static void
decompress(java.io.InputStream in, java.io.OutputStream out)
Decompresses the givenInputStream
into the givenOutputStream
.
-
-
-
Method Detail
-
compress
public static void compress(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
Compresses the givenInputStream
into the givenOutputStream
.- Parameters:
in
- theInputStream
to compressout
- theOutputStream
to compress to- Throws:
java.io.IOException
-
decompress
public static void decompress(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
Decompresses the givenInputStream
into the givenOutputStream
.- Parameters:
in
- theInputStream
to decompressout
- theOutputStream
to decompress to- Throws:
java.io.IOException
-
-