TurtleDB
A mini distributed database system
ca.uqac.dim.turtledb.util.FileReadWrite Class Reference

List of all members.

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"

Detailed Description

Utility class for file reading and writing.

Author:
sylvain

Definition at line 12 of file FileReadWrite.java.


Member Function Documentation

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

Parameters:
filenameThe file name to read from
encodingThe file encoding (optional, default "utf-8")
Returns:
The contents of the file
Exceptions:
IOExceptionIf 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.


Member Data Documentation

Default file encoding

Definition at line 17 of file FileReadWrite.java.


The documentation for this class was generated from the following file: