com.badlogic.gdx.utils.compression
Class Lzma
java.lang.Object
com.badlogic.gdx.utils.compression.Lzma
public class Lzma
- extends 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 |
Lzma()
|
Lzma
public Lzma()
compress
public static void compress(InputStream in,
OutputStream out)
throws IOException
- Compresses the given
InputStream
into the given OutputStream
.
- Parameters:
in
- the InputStream
to compressout
- the OutputStream
to compress to
- Throws:
IOException
decompress
public static void decompress(InputStream in,
OutputStream out)
throws IOException
- Decompresses the given
InputStream
into the given OutputStream
.
- Parameters:
in
- the InputStream
to decompressout
- the OutputStream
to decompress to
- Throws:
IOException
Copyright © 2013. All Rights Reserved.