org.openarchitectureware.workflow.util
Class InputStreamToByteArray

java.lang.Object
  extended by org.openarchitectureware.workflow.util.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

Field Summary
static int DEFAULT_BUFFER_SIZE
           
 
Constructor Summary
InputStreamToByteArray()
           
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
 

Field Detail

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

InputStreamToByteArray

public InputStreamToByteArray()

InputStreamToByteArray

public InputStreamToByteArray(int bufSize)
Method Detail

read

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