Package org.apache.abdera.i18n.text.io
Class CompressionUtil
- java.lang.Object
-
- org.apache.abdera.i18n.text.io.CompressionUtil
-
public class CompressionUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompressionUtil.CompressionCodec
-
Constructor Summary
Constructors Constructor Description CompressionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompressionUtil.CompressionCodec
getCodec(String name)
static InputStream
getDecodingInputStream(InputStream in, String ce)
static InputStream
getDecodingInputStream(InputStream in, CompressionUtil.CompressionCodec encoding)
static InputStream
getDecodingInputStream(InputStream in, CompressionUtil.CompressionCodec... encoding)
static OutputStream
getEncodedOutputStream(OutputStream out, CompressionUtil.CompressionCodec encoding)
static OutputStream
getEncodedOutputStream(OutputStream out, CompressionUtil.CompressionCodec... encodings)
static String[]
splitAndTrim(String value, String delim, boolean unquote)
-
-
-
Method Detail
-
getCodec
public static CompressionUtil.CompressionCodec getCodec(String name)
-
getEncodedOutputStream
public static OutputStream getEncodedOutputStream(OutputStream out, CompressionUtil.CompressionCodec encoding) throws IOException
- Throws:
IOException
-
getEncodedOutputStream
public static OutputStream getEncodedOutputStream(OutputStream out, CompressionUtil.CompressionCodec... encodings) throws IOException
- Throws:
IOException
-
getDecodingInputStream
public static InputStream getDecodingInputStream(InputStream in, CompressionUtil.CompressionCodec encoding) throws IOException
- Throws:
IOException
-
getDecodingInputStream
public static InputStream getDecodingInputStream(InputStream in, CompressionUtil.CompressionCodec... encoding) throws IOException
- Throws:
IOException
-
getDecodingInputStream
public static InputStream getDecodingInputStream(InputStream in, String ce) throws IOException
- Throws:
IOException
-
-