com.adobe.livecycle.rca.common.utils
Class IOUtil

java.lang.Object
  extended by com.adobe.livecycle.rca.common.utils.IOUtil

public class IOUtil
extends Object

Input Output utility wrapper.


Constructor Summary
IOUtil()
           
 
Method Summary
static void copyStream(InputStream is, OutputStream os)
          Utility method to copy inputstream to outputstream.
static byte[] getBytes(InputStream is)
          converts an input stream to an byte array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtil

public IOUtil()
Method Detail

copyStream

public static final void copyStream(InputStream is,
                                    OutputStream os)
                             throws IOException
Utility method to copy inputstream to outputstream. It doesn't close any stream.

Parameters:
is - input stream
os - output stream
Throws:
IOException - if there is any error in reading from or writing to the stream

getBytes

public static final byte[] getBytes(InputStream is)
                             throws IOException
converts an input stream to an byte array.

Parameters:
is - input stream
Returns:
byte array of the input stream
Throws:
IOException - if there is any error in reading from or writing to the stream


[an error occurred while processing this directive] [an error occurred while processing this directive]