public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getFileContents(java.lang.String path)
Get the contents of the file located at this path
|
static java.lang.String |
getGZIPFileContents(java.lang.String path)
Get the contents of the GZIP compressed file located at this path
|
static java.lang.String |
inputStreamToString(java.io.InputStream is)
parse an input stream to a string
|
public static java.lang.String inputStreamToString(java.io.InputStream is)
is - input streampublic static java.lang.String getFileContents(java.lang.String path)
throws java.io.IOException
path - path to filejava.io.IOException - error reading filepublic static java.lang.String getGZIPFileContents(java.lang.String path)
throws java.io.IOException
path - path to filejava.io.IOException - error reading file