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

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
                  extended byde.dante.extex.interpreter.primitives.file.InputFileEncoding
All Implemented Interfaces:
Code, Configurable, Localizable, java.io.Serializable

public class InputFileEncoding
extends InputFile

This class provides an implementation for the primitive \inputfileencoding. It use the given encoding for opening and not the encoding in \inputencoding. The filename can have space in his name. Example:

 \inputfileencoding{encoding}{file.name}
 

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

Field Summary
protected static long serialVersionUID
          The field serialVersionUID contains the version number for serialization.
 
Fields inherited from class de.dante.extex.interpreter.primitives.file.AbstractFileCode
MAX_IN_FILE_NO, MAX_OUT_FILE_NO
 
Constructor Summary
InputFileEncoding(java.lang.String name)
          Creates a new object.
 
Method Summary
 void execute(Flags prefix, Context context, TokenSource source, Typesetter typesetter)
          Scan the encoding and file name and open the file in the tokenizer stream.
 
Methods inherited from class de.dante.extex.interpreter.primitives.file.InputFile
scanFileName
 
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
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
The field serialVersionUID contains the version number for serialization.

See Also:
Constant Field Values
Constructor Detail

InputFileEncoding

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

Parameters:
name - the name for debugging
Method Detail

execute

public void execute(Flags prefix,
                    Context context,
                    TokenSource source,
                    Typesetter typesetter)
             throws InterpreterException
Scan the encoding and file name and open the file in the tokenizer stream.

Specified by:
execute in interface Code
Overrides:
execute in class Input
Throws:
InterpreterException
See Also:
Code.execute( de.dante.extex.interpreter.Flags, de.dante.extex.interpreter.context.Context, de.dante.extex.interpreter.TokenSource, de.dante.extex.typesetter.Typesetter)