|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjetif.ext.TextFile
This class TextFile provides a easy way to get a Writer
to a text file.
| Constructor Summary | |
TextFile(File file)
Construct from a file object and system encoding. |
|
TextFile(File file,
String enc)
Construct from a file object and encoding. |
|
TextFile(String filename,
String enc)
Construct from file name and encoding. |
|
| Method Summary | |
Reader |
getReader()
Get a reader to this text file. |
Writer |
getWriter(boolean append)
Get the writer to this text file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextFile(String filename,
String enc)
filename - the file name.enc - the encodingpublic TextFile(File file)
file -
public TextFile(File file,
String enc)
file - the file objectenc - the encoding| Method Detail |
public Writer getWriter(boolean append)
throws IOException
append - true to append the file end.
IOException
public Reader getReader()
throws IOException
IOException - if I/O error occurs.
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||