de.dante.extex.font.type.vf.command
Class VFCommand

java.lang.Object
  extended byde.dante.extex.font.type.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: 1.5 $
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(RandomAccessR rar, FontFactory fontfactory, java.util.Map fontmap, TFMFont mastertfm)
          Return the new instance of the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.dante.util.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(RandomAccessR rar,
                                    FontFactory fontfactory,
                                    java.util.Map fontmap,
                                    TFMFont mastertfm)
                             throws java.io.IOException,
                                    FontException
Return the new instance of the command. The command read itself the data from the input.

Parameters:
rar - the input
fontfactory - the font factory
fontmap - the fontmap
mastertfm - the master tfm-font
Returns:
Returns the new instance, or null, if no more data exists.
Throws:
java.io.IOException - if a IO-error occurs
FontException - if a font-error occurs

getCommandCode

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

Returns:
Returns the type of the command.