libgdx API

com.badlogic.gdx.utils.compression
Class Lzma

java.lang.Object
  extended by 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
Lzma()
           
 
Method Summary
static void compress(java.io.InputStream in, java.io.OutputStream out)
          Compresses the given InputStream into the given OutputStream.
static void decompress(java.io.InputStream in, java.io.OutputStream out)
          Decompresses the given InputStream into the given OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lzma

public Lzma()
Method Detail

compress

public static void compress(java.io.InputStream in,
                            java.io.OutputStream out)
                     throws java.io.IOException
Compresses the given InputStream into the given OutputStream.

Parameters:
in - the InputStream to compress
out - the OutputStream 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 given InputStream into the given OutputStream.

Parameters:
in - the InputStream to decompress
out - the OutputStream to decompress to
Throws:
java.io.IOException

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)