Package net.sourceforge.plantuml.code
Class CompressionZlib
- java.lang.Object
-
- net.sourceforge.plantuml.code.CompressionZlib
-
- All Implemented Interfaces:
Compression
public class CompressionZlib extends Object implements Compression
-
-
Constructor Summary
Constructors Constructor Description CompressionZlib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
compress(byte[] in)
Shrinks the givenin
array with lengthlen
ByteArray
decompress(byte[] input)
Grows the givenin
array with lengthlen
compressed with theshrink
method.
-
-
-
Method Detail
-
compress
public byte[] compress(byte[] in)
Description copied from interface:Compression
Shrinks the givenin
array with lengthlen
- Specified by:
compress
in interfaceCompression
- Returns:
- a newly created array with the compressed data.
-
decompress
public ByteArray decompress(byte[] input) throws NoPlantumlCompressionException
Description copied from interface:Compression
Grows the givenin
array with lengthlen
compressed with theshrink
method.- Specified by:
decompress
in interfaceCompression
- Returns:
- a newly created array with the expanded data.
- Throws:
NoPlantumlCompressionException
-
-