APIdia Launch Partner
Top Description Inners Constructors Methods
com.badlogic.gdx.utils.compression

public Class Lzma

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Constructor Summary

AccessConstructor and Description
public
Lzma()

Method Summary

Modifier and TypeMethod and Description
public static void
compress(InputStream
the InputStream to compress
in
,
OutputStream
the OutputStream to compress to
out
)

Compresses the given InputStream into the given OutputStream.

public static void
decompress(InputStream
the InputStream to decompress
in
,
OutputStream
the OutputStream to decompress to
out
)

Decompresses the given InputStream into the given OutputStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Lzmaback to summary
public Lzma()

Method Detail

compressback to summary
public static void compress(InputStream in, OutputStream out) throws IOException

Compresses the given InputStream into the given OutputStream.

Parameters
in:InputStream

the InputStream to compress

out:OutputStream

the OutputStream to compress to

decompressback to summary
public static void decompress(InputStream in, OutputStream out) throws IOException

Decompresses the given InputStream into the given OutputStream.

Parameters
in:InputStream

the InputStream to decompress

out:OutputStream

the OutputStream to decompress to

com.badlogic.gdx.utils.compression back to summary

pack-priv Class Lzma.CommandLine

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public int
public int
public int
public boolean
public boolean
public int
public boolean
public String
public static final int
public static final int
public static final int
public int
public int
public int
public int
public String
public int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Algorithmback to summary
public int Algorithm
Commandback to summary
public int Command
DictionarySizeback to summary
public int DictionarySize
DictionarySizeIsDefinedback to summary
public boolean DictionarySizeIsDefined
Eosback to summary
public boolean Eos
Fbback to summary
public int Fb
FbIsDefinedback to summary
public boolean FbIsDefined
InFileback to summary
public String InFile
kBenchmakback to summary
public static final int kBenchmak
kDecodeback to summary
public static final int kDecode
kEncodeback to summary
public static final int kEncode
Lcback to summary
public int Lc
Lpback to summary
public int Lp
MatchFinderback to summary
public int MatchFinder
NumBenchmarkPassesback to summary
public int NumBenchmarkPasses
OutFileback to summary
public String OutFile
Pbback to summary
public int Pb

Constructor Detail

CommandLineback to summary
pack-priv CommandLine()