Class Pack200Streams

java.lang.Object
org.jacoco.core.internal.Pack200Streams

public final class Pack200Streams extends Object
Internal wrapper for the weird Pack200 Java API to allow usage with streams.
  • Constructor Details

    • Pack200Streams

      private Pack200Streams()
  • Method Details

    • unpack

      public static InputStream unpack(InputStream input) throws IOException
      Unpack a stream in Pack200 format into a stream in JAR/ZIP format.
      Parameters:
      input - stream in Pack200 format
      Returns:
      stream in JAR/ZIP format
      Throws:
      IOException - in case of errors with the streams
    • pack

      public static void pack(byte[] source, OutputStream output) throws IOException
      Packs a buffer in JAR/ZIP format into a stream in Pack200 format.
      Parameters:
      source - source in JAR/ZIP format
      output - stream in Pack200 format
      Throws:
      IOException - in case of errors with the streams
    • newIOException

      private static IOException newIOException(Throwable cause)