Interface Compression
-
- All Known Implementing Classes:
LZ4Compression
public interface Compression
This interface provides a default list of support compression algorithms and some utility functions. It is mainly used by intermediate stored files inExternalSort
and sort/index utilities inorg.apache.jackrabbit.oak.index.indexer.document.flatfile
. Other compression algorithms can be supported by implementing the methods.
-
-
Field Summary
Fields Modifier and Type Field Description static Compression
GZIP
static Compression
NONE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
addSuffix(String filename)
InputStream
getInputStream(InputStream in)
OutputStream
getOutputStream(OutputStream out)
-
-
-
Field Detail
-
NONE
static final Compression NONE
-
GZIP
static final Compression GZIP
-
-
Method Detail
-
getInputStream
InputStream getInputStream(InputStream in) throws IOException
- Throws:
IOException
-
getOutputStream
OutputStream getOutputStream(OutputStream out) throws IOException
- Throws:
IOException
-
-