public abstract class Streams extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
toString(InputStream stream)
Return a
String containing the contents of the given InputStream. |
static void |
write(InputStream source,
OutputStream destination)
Writes the content of the source stream to the destination stream.
|
public static String toString(InputStream stream)
String containing the contents of the given InputStream. The caller is responsible to
close the stream.stream - the stream to read fromRuntimeException - if a IOException occurspublic static void write(InputStream source, OutputStream destination)
source - the source stream to read fromdestination - the destination stream to write toRuntimeException - if a IOException occurs.Copyright © 2019 JBoss by Red Hat. All rights reserved.