|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.base.type.file.OutputFile
org.extex.base.type.file.LogFile
public class 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 |
newline()
Write out a newline. |
void |
open(java.lang.String key,
java.lang.String encoding,
TokenStreamFactory factory)
Open the current file. |
boolean |
write(Tokens toks)
Write some tokens to the output writer. |
| Methods inherited from class org.extex.base.type.file.OutputFile |
|---|
use |
| 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 Logger| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface OutFileclose in class OutputFilejava.io.IOException - in case of an errorOutFile.close()public boolean isOpen()
isOpen in interface OutFileisOpen in class OutputFiletrue iff the instance is openOutFile.isOpen()
public void newline()
throws java.io.IOException
newline in interface OutFilenewline in class OutputFilejava.io.IOException - in case of an errorOutputFile.newline()
public void open(java.lang.String key,
java.lang.String encoding,
TokenStreamFactory factory)
open in interface OutFileopen in class OutputFilekey - the keyencoding - the encoding or null for the default
encodingfactory - the token stream factoryOutputFile.open(String,
java.lang.String, TokenStreamFactory)
public boolean write(Tokens toks)
throws java.io.IOException
write in interface OutFilewrite in class OutputFiletoks - tokens to write
true iff the writing was successful
java.io.IOException - in case of an IO errorOutputFile.write(
org.extex.scanner.type.tokens.Tokens)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||