|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcynosurex.io.ioRoutines
public final class ioRoutines
The ioRoutines class contains several useful class fields
and methods. It cannot be instantiated.
| Field Summary |
|---|
| Fields inherited from interface cynosurex.internal.CommonInterface |
|---|
copyright, copyrightYears, notice, program, version |
| Fields inherited from interface cynosurex.internal.AuthorCommon |
|---|
author, copyrightSymbol, noticeMsg, rights |
| Fields inherited from interface cynosurex.internal.CompanyCommon |
|---|
company, email, website |
| Method Summary | |
|---|---|
static java.lang.String |
readFile(java.io.File file)
Takes a file name and returns the content of the file in a String object. |
static java.lang.String |
readfile(java.lang.String filename)
Takes a file name and returns the content of the file in a String object. |
static java.lang.String |
readLine()
This method reads a line from standard input. |
static java.lang.String |
readLine(int bufferSize)
This method reads a line from standard input. |
static java.lang.String |
readUTF(java.lang.String filename)
Takes a file name, decodes the UTF-8 encoding, and returns the content of the file in a String object. |
static void |
writeFile(java.io.File file,
java.lang.String str)
Saves a String object into a file. |
static void |
writefile(java.lang.String filename,
java.lang.String str)
Saves a String object into a file. |
static void |
writeUTF(java.lang.String filename,
java.lang.String str)
Saves a String object into a file using UTF-8 encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String readFile(java.io.File file)
throws java.io.IOException
file - The file object.
java.io.IOException
public static java.lang.String readfile(java.lang.String filename)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String readLine()
public static java.lang.String readLine(int bufferSize)
public static void writeFile(java.io.File file,
java.lang.String str)
throws java.io.IOException
file - the File object.str - the String object to be saved into the file.
java.io.IOException
public static void writefile(java.lang.String filename,
java.lang.String str)
throws java.io.IOException
filename - the name of the file.str - the String object to be saved into the file.
java.io.IOException
public static java.lang.String readUTF(java.lang.String filename)
throws java.io.IOException
java.io.IOException
public static void writeUTF(java.lang.String filename,
java.lang.String str)
throws java.io.IOException
filename - - the name of the file.str - - the String object to be saved into the file.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||