org.jacoco.core.internal
Class Pack200Streams

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

public final class Pack200Streams
extends Object

Internal wrapper for the weird Pack200 Java API to allow usage with streams.


Method Summary
static void pack(byte[] source, OutputStream output)
          Packs a buffer in JAR/ZIP format into a stream in Pack200 format.
static InputStream unpack(InputStream input)
          Unpack a stream in Pack200 format into a stream in JAR/ZIP format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.