public final class IoUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getResource(String resourceName)
Loads a resource from the classpath.
|
static String |
getResourceAsString(String resourceName)
Loads a resource from the classpath as a
String. |
static String |
toString(InputStream inputStream)
Converts an
InputStream to a String. |
public static InputStream getResource(String resourceName)
resourceName - Resource namepublic static String getResourceAsString(String resourceName) throws IOException
String.resourceName - Resource nameIOException - upon I/O errorspublic static String toString(InputStream inputStream) throws IOException
InputStream to a String.inputStream - InputStreamIOException - upon I/O errorsCopyright © 2017 Metrics Delivered LLC.. All rights reserved.