org.extex.font.format.vf.command
Class VfCommand

java.lang.Object
  extended by org.extex.font.format.vf.command.VfCommand
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
VfCommandCharacterPackets, VfCommandFontDef, VfCommandPost, VfCommandPre

public abstract class VfCommand
extends java.lang.Object
implements XMLWriterConvertible

Abstract class for all vf commands.

Version:
$Revision: 6053 $
Author:
Michael Niedermair

Field Summary
static int FNT_DEF_1
          fnt def 1
static int FNT_DEF_2
          fnt def 2
static int FNT_DEF_3
          fnt def 3
static int FNT_DEF_4
          fnt def 4
static int MAX_CHARACTER
          maximum character nr
static int MIN_CHARACTER
          minimun character nr
static int POST
          post
static int PRE
          pre
static int SHIFT16
          Shift 16
static int SHIFT8
          Shift 8
 
Method Summary
 int getCommandCode()
          Returns the type of the command.
static VfCommand getInstance(Localizer localizer, RandomAccessR rar)
          Return the new instance of the command.
protected  Localizer getLocalizer()
          Getter for localizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.util.xml.XMLWriterConvertible
writeXML
 

Field Detail

PRE

public static final int PRE
pre

See Also:
Constant Field Values

FNT_DEF_1

public static final int FNT_DEF_1
fnt def 1

See Also:
Constant Field Values

FNT_DEF_2

public static final int FNT_DEF_2
fnt def 2

See Also:
Constant Field Values

FNT_DEF_3

public static final int FNT_DEF_3
fnt def 3

See Also:
Constant Field Values

FNT_DEF_4

public static final int FNT_DEF_4
fnt def 4

See Also:
Constant Field Values

MIN_CHARACTER

public static final int MIN_CHARACTER
minimun character nr

See Also:
Constant Field Values

MAX_CHARACTER

public static final int MAX_CHARACTER
maximum character nr

See Also:
Constant Field Values

POST

public static final int POST
post

See Also:
Constant Field Values

SHIFT8

public static final int SHIFT8
Shift 8

See Also:
Constant Field Values

SHIFT16

public static final int SHIFT16
Shift 16

See Also:
Constant Field Values
Method Detail

getInstance

public static VfCommand getInstance(Localizer localizer,
                                    RandomAccessR rar)
                             throws FontException
Return the new instance of the command. The command read itself the data from the input.

Parameters:
localizer - The localizer for the messages.
rar - the input.
Returns:
Returns the new instance, or null, if no more data exists.
Throws:
FontException - if a font-error occurs

getCommandCode

public int getCommandCode()
Returns the type of the command.

Returns:
Returns the type of the command.

getLocalizer

protected Localizer getLocalizer()
Getter for localizer.

Returns:
the localizer