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

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

public class ExecuteFile
extends OutFile

This is a class presenting itself as an OutFile which sends the tokens written to it to the underlying operating system for the execution in a shell.

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
ExecuteFile(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

ExecuteFile

public ExecuteFile(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 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
See Also:
OutFile.write( de.dante.extex.interpreter.type.tokens.Tokens)