org.jboss.soa.esb.util
Class StreamUtils

java.lang.Object
  extended by org.jboss.soa.esb.util.StreamUtils

public class StreamUtils
extends java.lang.Object

Stream handling utilities.

Author:
tom.fennelly@jboss.com

Constructor Summary
StreamUtils()
           
 
Method Summary
static byte[] readStream(java.io.InputStream stream)
          Read the supplied InputStream and return as an array of bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtils

public StreamUtils()
Method Detail

readStream

public static byte[] readStream(java.io.InputStream stream)
Read the supplied InputStream and return as an array of bytes.

Parameters:
stream - The stream to read.
Returns:
The stream contents in an array of bytes.