Coverage Report - org.mule.util.compression.CompressionStrategy
 
Classes in this File Line Coverage Branch Coverage Complexity
CompressionStrategy
N/A
N/A
1
 
 1  
 /*
 2  
  * $Id: CompressionStrategy.java 8077 2007-08-27 20:15:25Z aperepel $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.util.compression;
 12  
 
 13  
 import java.io.IOException;
 14  
 
 15  
 /**
 16  
  * <code>CompressionStrategy</code> is a base interface for Different compression
 17  
  * strategies
 18  
  */
 19  
 public interface CompressionStrategy
 20  
 {
 21  
     /**
 22  
      * The fully qualified class name of the fallback
 23  
      * <code>CompressionStrategy</code> implementation class to use, if no other
 24  
      * can be found. the default is
 25  
      * <code>org.mule.util.compression.GZipCompression</code>
 26  
      */
 27  
     String COMPRESSION_DEFAULT = "org.mule.util.compression.GZipCompression";
 28  
 
 29  
     /**
 30  
      * JDK1.3+ 'Service Provider' specification (
 31  
      * http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html )
 32  
      */
 33  
     String SERVICE_ID = "META-INF/services/org.mule.util.compression.CompressionStrategy";
 34  
 
 35  
     byte[] compressByteArray(byte[] bytes) throws IOException;
 36  
 
 37  
     byte[] uncompressByteArray(byte[] bytes) throws IOException;
 38  
 
 39  
     boolean isCompressed(byte[] bytes) throws IOException;
 40  
 }