|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CompilerIO
This class handles all IO for the compiler application.
Constructor Summary | |
CompilerIO(String inFile)
Create a new CompilerIO object, using the file name given for the input file, and creating the output file name based on the input file name. |
|
CompilerIO(String inFile,
String outFile)
Create a new CompilerIO object, using the two file names given. |
Method Summary | |
void |
close()
Close the input and output streams. |
boolean |
getEchoing()
Get the echoing property. |
String |
getEchoPrefix()
Get the echo prefix string. |
static void |
main(String[] arg)
Run a simple test of this CompilerIO class. |
void |
printAsmLine(String s)
Write a string out to the output file. |
String |
readSrcLine()
Read one line of input from the originally specified input file. |
void |
setEchoing(boolean e)
Set the echoing property. |
void |
setEchoPrefix(String s)
Set the echo prefix that is written out before each echoed line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompilerIO(String inFile, String outFile) throws IOException
inFile
- the name of the input fileoutFile
- the name of the output file
IOException
- If any input or output exception occurs while
opening the files.public CompilerIO(String inFile) throws IOException
inFile
- the name of the input file
IOException
- If any input or output exception occurs while
opening the files.Method Detail |
public String readSrcLine() throws IOException
IOException
- If an I/O error occurs while readingpublic void printAsmLine(String s)
s
- The String to write out.
IOException
- If an IO error occurs while writingpublic void setEchoing(boolean e)
e
- true or false.public boolean getEchoing()
public void setEchoPrefix(String s)
public String getEchoPrefix()
public void close() throws IOException
IOException
- If an I/O error occurs while closingpublic static void main(String[] arg) throws IOException
arg
- IOException
- If an IO error occurs while processing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |