Class InputStreamCopier

java.lang.Object
com.nt.udc.util.InputStreamCopier

public class InputStreamCopier extends Object
Copies the data from the given InputStream to the given OutputStream. This is provided as a convience class for operations such as copying a file across filesystems.
  • Constructor Details

    • InputStreamCopier

      public InputStreamCopier(InputStream inputStream, OutputStream outputStream)
      Create a new InputStream copier initialized with the provided Input and Output Streams.
  • Method Details

    • copy

      public void copy() throws IOException
      Copy the data from the InputStream to the OutputStream. This will continue copying until the InputStream's read(byte[]) method returns -1 (the end of the stream is reached).
      Throws:
      IOException