public abstract class Streams extends Object
| Constructor and Description |
|---|
Streams() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(Closeable source)
Closes the resource without throwing any exception
|
static InputStream |
fromString(String data) |
static String |
toString(InputStream stream)
Return a
String containing the contents of the given InputStream |
static String |
toString(InputStream stream,
Charset charset)
Return a
String containing the contents of the given InputStream |
static void |
write(InputStream source,
OutputStream destination) |
public static String toString(InputStream stream)
String containing the contents of the given InputStreampublic static String toString(InputStream stream, Charset charset)
String containing the contents of the given InputStreampublic static void write(InputStream source, OutputStream destination)
public static InputStream fromString(String data)
public static void closeQuietly(Closeable source)
source - the resource to be closed. May be nullCopyright © 2014 JBoss by Red Hat. All rights reserved.