Package net.sourceforge.plantuml.code
Interface Compression
-
- All Known Implementing Classes:
CompressionBrotli
,CompressionHuffman
,CompressionNone
,CompressionZip
,CompressionZlib
,CompressionZlibAttic
,CompressionZopfliZlib
public interface Compression
-
-
Method Summary
All Methods Instance Methods Abstract 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
byte[] compress(byte[] in)
Shrinks the givenin
array with lengthlen
- Returns:
- a newly created array with the compressed data.
-
decompress
ByteArray decompress(byte[] in) throws NoPlantumlCompressionException
Grows the givenin
array with lengthlen
compressed with theshrink
method.- Returns:
- a newly created array with the expanded data.
- Throws:
NoPlantumlCompressionException
-
-