com.tekann.codegen.pda.util
Class ZLibUtil

java.lang.Object
  extended by com.tekann.codegen.pda.util.ZLibUtil

public class ZLibUtil
extends java.lang.Object

Util for ZLib.

Author:
Evandro Rathke

Field Summary
static int BUFFER_SIZE
           
 
Constructor Summary
ZLibUtil()
           
 
Method Summary
static void deflate(totalcross.io.Stream compressedFile, java.lang.String uncompressedFilePath)
          Compress a stream.
static void deflate(java.lang.String compressedFilePath, java.lang.String uncompressedFilePath)
           
static void inflate(java.lang.String uncompressedFilePath, totalcross.io.Stream compressedFile)
           
static void inflate(java.lang.String uncompressedFilePath, java.lang.String compressedFilePath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static int BUFFER_SIZE
Constructor Detail

ZLibUtil

public ZLibUtil()
Method Detail

deflate

public static void deflate(totalcross.io.Stream compressedFile,
                           java.lang.String uncompressedFilePath)
                    throws java.lang.Exception
Compress a stream.

Parameters:
compressedFile -
uncompressedFilePath -
Throws:
java.lang.Exception

deflate

public static void deflate(java.lang.String compressedFilePath,
                           java.lang.String uncompressedFilePath)
                    throws java.lang.Exception
Throws:
java.lang.Exception

inflate

public static void inflate(java.lang.String uncompressedFilePath,
                           totalcross.io.Stream compressedFile)
                    throws java.lang.Exception
Parameters:
compressedFile -
uncompressedFilePath -
Throws:
java.lang.Exception

inflate

public static void inflate(java.lang.String uncompressedFilePath,
                           java.lang.String compressedFilePath)
                    throws java.lang.Exception
Parameters:
compressedFilePath -
uncompressedFilePath -
Throws:
java.lang.Exception