|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmw.tzap.FilterFile
public class FilterFile
A file representation in the Text-Zap file filtering system.
A FilterFile contains:
| Constructor Summary | |
|---|---|
FilterFile()
Constructor for the FilterFile object |
|
FilterFile(java.lang.String inFile)
Constructor that sets the name of the input file. |
|
FilterFile(java.lang.String inFile,
java.lang.String outFile)
Constructor that sets the name of the input and output files. |
|
FilterFile(java.lang.String inFile,
java.lang.String outFile,
java.lang.String encod)
Constructor that sets the name of the input and output files, and the file encoding. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEncoding()
Gets the encoding to be used when reading or writing to disk. |
java.lang.String |
getInFile()
Gets the name of the file. |
java.lang.String |
getOutFile()
Gets the name of the file that will be written to disk. |
int |
getSize()
Gets the size of the buffer that is holding the file data |
java.lang.StringBuffer |
getText()
Gets the text stored in this file. |
void |
save()
Saves the buffer to disk using the preset outFile name. |
static void |
setEncoding(java.lang.String encod)
Sets the encoding to be used when reading or writing to disk. |
void |
setInFile(java.lang.String inFile)
Sets the name of the file. |
void |
setOutFile(java.lang.String outFile)
Sets the name of the file that will be written to disk. |
void |
setText(java.lang.String text)
Sets the text to be stored in this file. |
void |
setText(java.lang.StringBuffer text)
Sets the text to be stored in this file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterFile()
public FilterFile(java.lang.String inFile)
inFile - the name of the file on disk
public FilterFile(java.lang.String inFile,
java.lang.String outFile)
inFile - the name of the file on diskoutFile - the name of the file that the data will end
up in when saved on disk
public FilterFile(java.lang.String inFile,
java.lang.String outFile,
java.lang.String encod)
inFile - the name of the file on diskoutFile - the name of the file that the data will end
up in when saved on diskencoding - the encoding to use when reading and writing
to disk| Method Detail |
|---|
public java.lang.StringBuffer getText()
throws java.io.IOException
java.io.IOException - if there is an error loading the file
from diskpublic void setText(java.lang.StringBuffer text)
text - the text to be stored in this filepublic void setText(java.lang.String text)
text - the text to be stored in this filepublic static void setEncoding(java.lang.String encod)
encoding - the file encodingpublic java.lang.String getEncoding()
public void setInFile(java.lang.String inFile)
inFile - the name of the file.public java.lang.String getInFile()
public void setOutFile(java.lang.String outFile)
outFile - the name of the file.public java.lang.String getOutFile()
public int getSize()
public void save()
throws java.io.IOException
java.io.IOException - if there is an error writing the file to
disk
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||