xades4j.utils
Class StreamUtils

java.lang.Object
  extended by xades4j.utils.StreamUtils

public class StreamUtils
extends Object

Utility methods for streams.

Author:
Luís

Method Summary
static void readWrite(InputStream is, OutputStream os)
          Reads the content of an input stream and writes it into an output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readWrite

public static void readWrite(InputStream is,
                             OutputStream os)
                      throws IOException
Reads the content of an input stream and writes it into an output stream. The copy is made in chunks of 512 bytes.

Parameters:
is - the input
os - the output
Throws:
IOException - thrown by the read and write methods of the streams


Copyright © 2012. All Rights Reserved.