org.sourceforge.jemm.util
Class IOUtil

java.lang.Object
  extended by org.sourceforge.jemm.util.IOUtil

public final class IOUtil
extends java.lang.Object

Generic Stream Utilities

Author:
Paul Keeble

Method Summary
static byte[] readFully(java.io.InputStream is)
          Reads a Stream from beginning to end using a 4K buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readFully

public static byte[] readFully(java.io.InputStream is)
                        throws java.io.IOException
Reads a Stream from beginning to end using a 4K buffer.

Parameters:
is - The stream that is tread
Returns:
The bytes from the Stream
Throws:
java.io.IOException - Thrown if the underlying stream fails to read.


Copyright © 2009. All Rights Reserved.