-
public class WriterCallbacksUtility class to create typical WriterCallbacks.
-
-
Method Summary
Modifier and Type Method Description static WriterCallbackfrom(InputStream is)Creates a writer callback that copies all the content read from an InputStream into thetarget stream. static WriterCallbackfrom(Array<byte> data)Creates a writer callback that writes some byte array to the target stream. -
-
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
-
-
-
-