org.apache.abdera.i18n.text.io
Class CompressionUtil

java.lang.Object
  extended by org.apache.abdera.i18n.text.io.CompressionUtil

public class CompressionUtil
extends Object


Nested Class Summary
static class CompressionUtil.CompressionCodec
           
 
Constructor Summary
CompressionUtil()
           
 
Method Summary
static CompressionUtil.CompressionCodec getCodec(String name)
           
static InputStream getDecodingInputStream(InputStream in, CompressionUtil.CompressionCodec... encoding)
           
static InputStream getDecodingInputStream(InputStream in, CompressionUtil.CompressionCodec encoding)
           
static InputStream getDecodingInputStream(InputStream in, String ce)
           
static OutputStream getEncodedOutputStream(OutputStream out, CompressionUtil.CompressionCodec... encodings)
           
static OutputStream getEncodedOutputStream(OutputStream out, CompressionUtil.CompressionCodec encoding)
           
static String[] splitAndTrim(String value, String delim, boolean unquote)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressionUtil

public CompressionUtil()
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

splitAndTrim

public static String[] splitAndTrim(String value,
                                    String delim,
                                    boolean unquote)


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.