ahc.util.bytes
Class InputStreamToByteArray

java.lang.Object
  |
  +--ahc.util.bytes.InputStreamToByteArray

public class InputStreamToByteArray
extends java.lang.Object

This is a convenience class that completely reads an InputStream and dumps it to a byte array.

Author:
Arno Haase

Constructor Summary
InputStreamToByteArray(int bufSize)
           
 
Method Summary
 byte[] read(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamToByteArray

public InputStreamToByteArray(int bufSize)
Method Detail

read

public byte[] read(java.io.InputStream is)
            throws java.io.IOException
java.io.IOException