org.mule.util.compression
Interface CompressionStrategy

All Known Implementing Classes:
GZipCompression

public interface CompressionStrategy

CompressionStrategy TODO -document class

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Field Summary
static java.lang.String COMPRESSION_DEFAULT
          The fully qualified class name of the fallback CompressionStrategy implementation class to use, if no other can be found.
static java.lang.String SERVICE_ID
          JDK1.3+ 'Service Provider' specification ( http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html )
 
Method Summary
 byte[] compressByteArray(byte[] bytes)
           
 boolean isCompressed(byte[] bytes)
           
 byte[] uncompressByteArray(byte[] bytes)
           
 

Field Detail

COMPRESSION_DEFAULT

public static final java.lang.String COMPRESSION_DEFAULT
The fully qualified class name of the fallback CompressionStrategy implementation class to use, if no other can be found. the default is org.mule.util.compression.GZipCompression

See Also:
Constant Field Values

SERVICE_ID

public static final java.lang.String SERVICE_ID
JDK1.3+ 'Service Provider' specification ( http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html )

See Also:
Constant Field Values
Method Detail

compressByteArray

public byte[] compressByteArray(byte[] bytes)
                         throws java.io.IOException
Throws:
java.io.IOException

uncompressByteArray

public byte[] uncompressByteArray(byte[] bytes)
                           throws java.io.IOException
Throws:
java.io.IOException

isCompressed

public boolean isCompressed(byte[] bytes)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.