public class IOUtils
extends java.lang.Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
getTestDataFile(java.lang.String path)
Get the file object of sample dataset.
|
static java.lang.String |
getTestDataPath(java.lang.String path)
Get the file path of sample dataset.
|
static java.io.BufferedReader |
getTestDataReader(java.lang.String path)
Get the reader of sample datasets.
|
static java.util.List<java.lang.String> |
readLines(java.io.InputStream input)
Returns the lines of an
InputStream as a list of Strings. |
static java.util.List<java.lang.String> |
readLines(java.io.InputStream input,
java.nio.charset.Charset charset)
Returns the lines of an
InputStream as a list of Strings. |
static java.util.List<java.lang.String> |
readLines(java.io.Reader input)
Returns the lines of a
Reader as a list of Strings. |
public static java.lang.String getTestDataPath(java.lang.String path)
public static java.io.File getTestDataFile(java.lang.String path)
public static java.io.BufferedReader getTestDataReader(java.lang.String path)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic static java.util.List<java.lang.String> readLines(java.io.InputStream input)
throws java.io.IOException
InputStream as a list of Strings.input - the InputStream to read from.java.io.IOExceptionpublic static java.util.List<java.lang.String> readLines(java.io.InputStream input,
java.nio.charset.Charset charset)
throws java.io.IOException
InputStream as a list of Strings.input - the InputStream to read from.charset - a charset.java.io.IOExceptionpublic static java.util.List<java.lang.String> readLines(java.io.Reader input)
throws java.io.IOException
Reader as a list of Strings.input - the Reader to read from.java.io.IOException