Package org.apache.axiom.util.io

## Class IOUtils

- java.lang.Object
- - org.apache.axiom.util.io.IOUtils

-     public final class IOUtils
      extends Object

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static long` | `copy​(InputStream in, OutputStream out, long length)` | Copy bytes between streams.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### copy

          public static long copy​(InputStream in,
                                  OutputStream out,
                                  long length)
                           throws StreamCopyException

      Copy bytes between streams. This method supports the `ReadFromSupport` interface. It will not call `Closeable.close()` on either of the two streams.
      Parameters:
        `in` - the stream to read bytes from
        `out` - the stream to write bytes to
        `length` - the maximum number of bytes to copy, or -1 to copy an unlimited number of bytes
      Returns:
        the number of bytes copied
      Throws:
        `StreamCopyException` - if a read/write operation on one of the streams triggered an `IOException`