Package xades4j.utils

Class StreamUtils

java.lang.Object
xades4j.utils.StreamUtils

public class StreamUtils extends Object
Utility methods for streams.
Author:
Luís
  • Method Details

    • 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 1 KB.
      Parameters:
      is - the input
      os - the output
      Throws:
      IOException - thrown by the read and write methods of the streams