Class HfsCompressor

java.lang.Object
org.robovm.compiler.util.io.HfsCompressor

public class HfsCompressor
extends Object
Takes a file and compresses it via the libhfscompressor.dylib in robovm/bin. Used on object files.

Compression can be disabled completely by setting the ROBOVM_DISABLE_COMPRESSION environment variable.

  • Constructor Details

    • HfsCompressor

      public HfsCompressor()
  • Method Details

    • compress

      public void compress​(File file, byte[] data, Config config) throws IOException, InterruptedException
      Writes the given data to the file, trying to compress it via HFS+ compression on Mac OS X. Simply writes the data to the file on other systems.
      Throws:
      IOException
      InterruptedException
    • compressNative

      public static boolean compressNative​(String fileName, byte[] data, int len)