Class CompressionUtilities

java.lang.Object
de.gurkenlabs.litiengine.util.io.CompressionUtilities

public final class CompressionUtilities
extends java.lang.Object
  • Method Summary

    Modifier and TypeMethodDescription
    static byte[]compress​(byte[] data) 
    static byte[]decompress​(byte[] data) 
    static voidunzip​(java.io.InputStream zipfile, java.io.File directory) 
    static voidzip​(java.io.File directory, java.io.File zipfile) 

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • compress

      public static byte[] compress​(byte[] data)
    • decompress

      public static byte[] decompress​(byte[] data)
    • unzip

      public static void unzip​(java.io.InputStream zipfile, java.io.File directory) throws java.io.IOException
      Throws:
      java.io.IOException
    • zip

      public static void zip​(java.io.File directory, java.io.File zipfile) throws java.io.IOException
      Throws:
      java.io.IOException