Modifier and Type | Method and Description |
---|---|
static void |
stream(InputStream in,
OutputStream out)
Streams all data from an input stream to an output stream.
|
static int |
stream(InputStream in,
OutputStream out,
int len)
Streams data from an input stream to an output stream, up to a specified
length.
|
static void |
stream(Reader in,
Writer out)
Streams all characters from a reader to a writer.
|
public static void stream(InputStream in, OutputStream out) throws IOException
in
- the input stream to stream the data from.out
- the output stream to stream the data to.IOException
- if an I/O exception occurs.public static int stream(InputStream in, OutputStream out, int len) throws IOException
in
- the input stream to stream the data from.out
- the output stream to stream the data to.len
- the number of bytes to stream.IOException
- if an I/O exception occurs.public static void stream(Reader in, Writer out) throws IOException
in
- reader to stream the characters from.out
- the writer to stream the characters to.IOException
- if an I/O exception occurs.Copyright © 2014 ForgeRock AS. All rights reserved.