|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.util.MyFileWriter
public class MyFileWriter
MyFileWriter
writes a text to a file, using buffered writing
methods.
Constructor Summary | |
---|---|
MyFileWriter(java.lang.String fileName)
Constructor that takes the name of the file to be written to. |
Method Summary | |
---|---|
void |
writeToFile(java.lang.String text)
Writes the text into the file that has been set in the constructor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MyFileWriter(java.lang.String fileName)
fileName
- Method Detail |
---|
public void writeToFile(java.lang.String text) throws java.io.IOException
text
-
java.io.IOException
- if the text could not be written to the given file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |