codesimian
Class Streams

java.lang.Object
  extended by codesimian.Streams

public class Streams
extends java.lang.Object

static functions relevant to InputStream and OutputStream


Field Summary
static int defaultBlockSize
           
static int defaultByteLimit
           
 
Method Summary
static byte[] getAllBytesFromStream(java.io.InputStream getMyBytes)
           
static byte[] getAllBytesFromStream(java.io.InputStream getMyBytes, int blockSize, int byteLimit, boolean busyWait)
          needs to be tested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultBlockSize

public static final int defaultBlockSize
See Also:
Constant Field Values

defaultByteLimit

public static final int defaultByteLimit
See Also:
Constant Field Values
Method Detail

getAllBytesFromStream

public static byte[] getAllBytesFromStream(java.io.InputStream getMyBytes)
                                    throws java.io.IOException
Throws:
java.io.IOException

getAllBytesFromStream

public static byte[] getAllBytesFromStream(java.io.InputStream getMyBytes,
                                           int blockSize,
                                           int byteLimit,
                                           boolean busyWait)
                                    throws java.io.IOException
needs to be tested

Throws:
java.io.IOException