Package net.sourceforge.plantuml.code
Class CompressionBrotli
java.lang.Object
net.sourceforge.plantuml.code.CompressionBrotli
- All Implemented Interfaces:
Compression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
compress
(byte[] in) Shrinks the givenin
array with lengthlen
decompress
(byte[] in) Grows the givenin
array with lengthlen
compressed with theshrink
method.
-
Constructor Details
-
CompressionBrotli
public CompressionBrotli()
-
-
Method Details
-
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
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
-