oemware.core.util
Class IoUtils

java.lang.Object
  extended by oemware.core.util.IoUtils

public final class IoUtils
extends java.lang.Object

The io utils.

Version:
$Id: IoUtils.java 13 2008-06-15 19:43:04Z oemware $

Constructor Summary
IoUtils()
           
 
Method Summary
static int readInputStream(java.io.InputStream pInputStream, byte[] pBuffer, int pReadSize)
          Read the input stream into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoUtils

public IoUtils()
Method Detail

readInputStream

public static final int readInputStream(java.io.InputStream pInputStream,
                                        byte[] pBuffer,
                                        int pReadSize)
                                 throws java.io.IOException
Read the input stream into a byte array. Make sure you're buffer is large enough or an exception will be thrown.

Parameters:
pInputStream - The stream.
pBuffer - The buffer.
pReadSize - The number of bytes to attempt to read at a time.
Returns:
The number of bytes read from the input stream.
Throws:
java.io.IOException


Copyright © 2008 Deft Labs - Released under LGPL, Version 3.0