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 giveninarray with lengthlenByteArraydecompress(byte[] input)Grows the giveninarray with lengthlencompressed with theshrinkmethod.
-
-
-
Method Detail
-
compress
public byte[] compress(byte[] in)
Description copied from interface:CompressionShrinks the giveninarray with lengthlen- Specified by:
compressin interfaceCompression- Returns:
- a newly created array with the compressed data.
-
decompress
public ByteArray decompress(byte[] input) throws NoPlantumlCompressionException
Description copied from interface:CompressionGrows the giveninarray with lengthlencompressed with theshrinkmethod.- Specified by:
decompressin interfaceCompression- Returns:
- a newly created array with the expanded data.
- Throws:
NoPlantumlCompressionException
-
-