org.apache.commons.compress
Class CompressUtils

java.lang.Object
  extended by org.apache.commons.compress.CompressUtils

public class CompressUtils
extends Object

Utils for Compress.


Method Summary
static boolean compareByteArrays(byte[] source, byte[] match)
          Compares one byte array to another
static void copy(InputStream input, OutputStream output)
          Copy bytes from an InputStream to an OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public static void copy(InputStream input,
                        OutputStream output)
                 throws IOException
Copy bytes from an InputStream to an OutputStream.

Throws:
IOException

compareByteArrays

public static boolean compareByteArrays(byte[] source,
                                        byte[] match)
Compares one byte array to another

Parameters:
source - the array to compare to
match - the bytearray match


Copyright © 2011 Apache Software Foundation. All Rights Reserved.