TurtleDB
A mini distributed database system
|
Static Public Member Functions | |
static String | getFileContents (String filename, String encoding) throws IOException |
static String | getFileContents (String filename) throws IOException |
Static Public Attributes | |
static String | DEFAULT_ENCODING = "utf-8" |
Utility class for file reading and writing.
Definition at line 12 of file FileReadWrite.java.
static String ca.uqac.dim.turtledb.util.FileReadWrite.getFileContents | ( | String | filename, |
String | encoding | ||
) | throws IOException [static] |
Returns the content of a file into a string
filename | The file name to read from |
encoding | The file encoding (optional, default "utf-8") |
IOException | If reading the file was impossible |
Definition at line 26 of file FileReadWrite.java.
static String ca.uqac.dim.turtledb.util.FileReadWrite.getFileContents | ( | String | filename | ) | throws IOException [static] |
Definition at line 42 of file FileReadWrite.java.
String ca.uqac.dim.turtledb.util.FileReadWrite.DEFAULT_ENCODING = "utf-8" [static] |
Default file encoding
Definition at line 17 of file FileReadWrite.java.