public final class IOHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
close(Closeable... closeables)
Closes the given resources if they are available.
|
static String |
loadText(InputStream in,
boolean skipCommentOrEmptyLines)
Loads the entire stream into memory as a String and returns it.
|
public static String loadText(InputStream in, boolean skipCommentOrEmptyLines) throws IOException
IOException
public static void close(Closeable... closeables)
closeables
- the objects to closeApache Camel