de.dante.extex.interpreter.primitives.file
Class InputFile

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.primitives.file.AbstractFileCode
          extended byde.dante.extex.interpreter.primitives.file.Input
              extended byde.dante.extex.interpreter.primitives.file.InputFile
All Implemented Interfaces:
Code, Configurable, Localizable, java.io.Serializable
Direct Known Subclasses:
InputFileEncoding

public class InputFile
extends Input

This class provides an implementation for the primitive \inputfile. The filename can have space in his name. Example:

 \inputfile{file.name}
 

Version:
$Revision: 1.11 $
Author:
Michael Niedermair
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.dante.extex.interpreter.primitives.file.Input
serialVersionUID
 
Fields inherited from class de.dante.extex.interpreter.primitives.file.AbstractFileCode
MAX_IN_FILE_NO, MAX_OUT_FILE_NO
 
Constructor Summary
InputFile(java.lang.String name)
          Creates a new object.
 
Method Summary
protected  java.lang.String scanFileName(Context context, TokenSource source)
          scan the filename between { and }.
 
Methods inherited from class de.dante.extex.interpreter.primitives.file.Input
execute
 
Methods inherited from class de.dante.extex.interpreter.primitives.file.AbstractFileCode
configure, getEncoding, scanInFileKey, scanOutFileKey
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode
enableLocalization, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputFile

public InputFile(java.lang.String name)
Creates a new object.

Parameters:
name - the name for debugging
Method Detail

scanFileName

protected java.lang.String scanFileName(Context context,
                                        TokenSource source)
                                 throws InterpreterException
scan the filename between { and }.

Overrides:
scanFileName in class AbstractFileCode
Parameters:
context - the context
source - the source for new tokens
Returns:
the file name as string
Throws:
InterpreterException - in case of an error
See Also:
AbstractFileCode.scanFileName( de.dante.extex.interpreter.context.Context, de.dante.extex.interpreter.TokenSource)