de.dante.extex.interpreter.type.file
Class LogFile

java.lang.Object
  extended byde.dante.extex.interpreter.type.file.OutFile
      extended byde.dante.extex.interpreter.type.file.LogFile
All Implemented Interfaces:
java.io.Serializable

public class LogFile
extends OutFile

This implementation of an OutFile encapsulates a Logger. It outputs the items to the log file only.

Version:
$Revision: 1.5 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

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

serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

LogFile

public LogFile(java.util.logging.Logger logger)
Creates a new object.

Parameters:
logger - the target Logger
Method Detail

close

public void close()
           throws java.io.IOException
Description copied from class: OutFile
Close the current file.

Overrides:
close in class OutFile
Throws:
java.io.IOException - in case of an error
See Also:
OutFile.close()

isOpen

public boolean isOpen()
Description copied from class: OutFile
Check whether the output file is open.

Overrides:
isOpen in class OutFile
Returns:
true iff the instance is open
See Also:
OutFile.isOpen()

open

public void open()
Description copied from class: OutFile
Open the current file.

Overrides:
open in class OutFile
See Also:
OutFile.open()

write

public void write(Tokens toks)
           throws InterpreterException,
                  java.io.IOException
Description copied from class: OutFile
Write some tokens to the output writer.

Overrides:
write in class OutFile
Parameters:
toks - tokens to write
Throws:
java.io.IOException - in case of an IO error
InterpreterException - in case of an error
See Also:
OutFile.write( de.dante.extex.interpreter.type.tokens.Tokens)