com.adobe.livecycle.rca.common.utils
Class IOUtil
java.lang.Object
com.adobe.livecycle.rca.common.utils.IOUtil
public class IOUtil
- extends Object
Input Output utility wrapper.
IOUtil
public IOUtil()
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 streamos
- 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]