Milyn-Commons Version 0.6

org.milyn.io
Class StreamUtils

java.lang.Object
  extended byorg.milyn.io.StreamUtils

public abstract class StreamUtils
extends java.lang.Object

Stream Utilities.

Author:
tfennelly

Constructor Summary
StreamUtils()
           
 
Method Summary
static byte[] readStream(java.io.InputStream stream)
          Read the supplied InputStream and return as a byte array.
 
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)
                         throws java.io.IOException
Read the supplied InputStream and return as a byte array.

Parameters:
stream - The stream to read.
Returns:
byte array containing the Stream data.
Throws:
java.io.IOException - Exception reading from the stream.

Milyn-Commons Version 0.6