Interface Compression
-
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 java.lang.String
addSuffix(java.lang.String filename)
java.io.InputStream
getInputStream(java.io.InputStream in)
java.io.OutputStream
getOutputStream(java.io.OutputStream out)
-
-
-
Field Detail
-
NONE
static final Compression NONE
-
GZIP
static final Compression GZIP
-
-
Method Detail
-
getInputStream
java.io.InputStream getInputStream(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
getOutputStream
java.io.OutputStream getOutputStream(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
addSuffix
java.lang.String addSuffix(java.lang.String filename)
-
-