public final class Files extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
read(BufferedReader source)
Read a file source.
|
static String |
read(File source)
Read a file content.
|
static String |
read(InputStream source)
Read a file source.
|
static String |
read(Reader source)
Read a file source.
|
static String |
read(String location)
Read a file from a classpath location.
|
public static String read(String location) throws IOException
location - The classpath location.IOException - If the file can't be read.public static String read(File source) throws IOException
source - The file.IOException - If the file can't be read.public static String read(InputStream source) throws IOException
source - The file source.IOException - If the file can't be read.public static String read(Reader source) throws IOException
source - The file source.IOException - If the file can't be read.public static String read(BufferedReader source) throws IOException
source - The file source.IOException - If the file can't be read.Copyright © 2016. All rights reserved.