|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.file.OutFile
de.dante.extex.interpreter.type.file.LogFile
This implementation of an OutFile encapsulates a Logger. It outputs the items to the log file only.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
LogFile(java.util.logging.Logger logger)
Creates a new object. |
Method Summary | |
void |
close()
Close the current file. |
boolean |
isOpen()
Check whether the output file is open. |
void |
open()
Open the current file. |
void |
write(Tokens toks)
Write some tokens to the output writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public LogFile(java.util.logging.Logger logger)
logger
- the target LoggerMethod Detail |
public void close() throws java.io.IOException
OutFile
close
in class OutFile
java.io.IOException
- in case of an errorOutFile.close()
public boolean isOpen()
OutFile
isOpen
in class OutFile
true
iff the instance is openOutFile.isOpen()
public void open()
OutFile
open
in class OutFile
OutFile.open()
public void write(Tokens toks) throws InterpreterException, java.io.IOException
OutFile
write
in class OutFile
toks
- tokens to write
java.io.IOException
- in case of an IO error
InterpreterException
- in case of an errorOutFile.write(
de.dante.extex.interpreter.type.tokens.Tokens)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |