Interface OCompression
- All Known Implementing Classes:
OAbstractCompression,OGZIPCompression,OHighZIPCompression,OLowZIPCompression,ONothingCompression,OZIPCompression
public interface OCompression
/** Storage compression interface. Additional compression implementations can be plugged via
register() method. There are 2 versions:OCompressionFactory.INSTANCE.register(for stateful implementations, a new instance will be created for each storage/li>) OCompressionFactory.INSTANCE.register(for stateless implementations, the same instance will be shared across all the storages./li>)
- Since:
- 05.06.13
- Author:
- Andrey Lomakin, Luca Garulli
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]compress(byte[] content) byte[]compress(byte[] content, int offset, int length) name()byte[]uncompress(byte[] content) byte[]uncompress(byte[] content, int offset, int length)
-
Method Details
-
compress
byte[] compress(byte[] content) -
compress
byte[] compress(byte[] content, int offset, int length) -
uncompress
byte[] uncompress(byte[] content) -
uncompress
byte[] uncompress(byte[] content, int offset, int length) -
name
String name() -
configure
-