Package net.sourceforge.plantuml.code
Class CompressionZlibPure
- java.lang.Object
-
- net.sourceforge.plantuml.code.CompressionZlibPure
-
- All Implemented Interfaces:
Compression
public class CompressionZlibPure extends java.lang.Object implements Compression
-
-
Constructor Summary
Constructors Constructor Description CompressionZlibPure()
-
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[] in)
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[] in) 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
-
-