|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.io.FileReader
Reads characters from a file.
| Constructor Summary | |
FileReader()
|
|
| Method Summary | |
static java.lang.String |
read(java.io.File file)
Reads characters and returns its text. |
static java.lang.String |
read(java.io.File file,
java.lang.String charsetName)
Reads characters and returns its text. |
static java.lang.String |
read(java.lang.String name)
Reads characters and returns its text. |
static java.lang.String |
read(java.lang.String name,
java.lang.String charsetName)
Reads characters and returns its text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileReader()
| Method Detail |
public static java.lang.String read(java.lang.String name)
throws java.io.FileNotFoundException,
java.io.IOException
name - The name of a file to read from.
java.io.FileNotFoundException - If the file did not exist or could not be opened for reading.
java.io.IOException - If an I/O error occurred.
public static java.lang.String read(java.lang.String name,
java.lang.String charsetName)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException,
java.io.IOException
name - The name of a file to read from.charsetName - The name of a charset.
java.io.FileNotFoundException - If the file did not exist or could not be opened for reading.
java.io.UnsupportedEncodingException - If the charset is not supported.
java.io.IOException - If an I/O error occurred.
public static java.lang.String read(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
file - A file to read from.
java.io.FileNotFoundException - If the file did not exist or could not be opened for reading.
java.io.IOException - If an I/O error occurred.
public static java.lang.String read(java.io.File file,
java.lang.String charsetName)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException,
java.io.IOException
file - A file to read from.charsetName - The name of a charset.
java.io.FileNotFoundException - If the file did not exist or could not be opened for reading.
java.io.UnsupportedEncodingException - If the charset is not supported.
java.io.IOException - If an I/O error occurred.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||