Package 

Class WriterCallbacks

    • Method Summary

      Modifier and Type Method Description
      static WriterCallback from(InputStream is) Creates a writer callback that copies all the content read from an InputStream into thetarget stream.
      static WriterCallback from(Array<byte> data) Creates a writer callback that writes some byte array to the target stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • from

         static WriterCallback from(InputStream is)

        Creates a writer callback that copies all the content read from an InputStream into thetarget stream.

        This writer can be used only once.

        Parameters:
        is - the source
      • from

         static WriterCallback from(Array<byte> data)

        Creates a writer callback that writes some byte array to the target stream.

        This writer can be used many times.

        Parameters:
        data - the bytes to write