Interface Compression
-
public interface CompressionThis interface provides a default list of support compression algorithms and some utility functions. It is mainly used by intermediate stored files inExternalSortand 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 CompressionGZIPstatic CompressionNONE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringaddSuffix(java.lang.String filename)java.io.InputStreamgetInputStream(java.io.InputStream in)java.io.OutputStreamgetOutputStream(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)
-
-