Class Pack200Streams
java.lang.Object
org.jacoco.core.internal.Pack200Streams
Internal wrapper for the weird Pack200 Java API to allow usage with streams.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static IOExceptionnewIOException(Throwable cause) static voidpack(byte[] source, OutputStream output) Packs a buffer in JAR/ZIP format into a stream in Pack200 format.static InputStreamunpack(InputStream input) Unpack a stream in Pack200 format into a stream in JAR/ZIP format.
-
Constructor Details
-
Pack200Streams
private Pack200Streams()
-
-
Method Details
-
unpack
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
Packs a buffer in JAR/ZIP format into a stream in Pack200 format.- Parameters:
source- source in JAR/ZIP formatoutput- stream in Pack200 format- Throws:
IOException- in case of errors with the streams
-
newIOException
-