org.extex.dviware.type
Interface DviCode

All Known Implementing Classes:
AbstractDviCode, DviBop, DviDown, DviEop, DviFnt, DviFntDef, DviPop, DviPostamble, DviPreamble, DviPush, DviPutChar, DviPutRule, DviRight, DviSetChar, DviSetRule, DviW, DviW0, DviX, DviX0, DviXxx, DviY, DviY0, DviZ, DviZ0

public interface DviCode

This interface describes DVI code. It must be written to the output stream at the end.

Version:
$Revision: 5428 $
Author:
Gerd Neugebauer

Field Summary
static DviCode POP
          The constant POP contains the DviCode for the pop instruction.
static DviCode PUSH
          The constant PUSH contains the DviCode for the push instruction.
static DviCode W0
          The constant W0 contains the DviCode for the w0 instruction.
static DviCode X0
          The constant X0 contains the DviCode for the x0 instruction.
static DviCode Y0
          The constant X0 contains the DviCode for the y0 instruction.
static DviCode Z0
          The constant Z0 contains the DviCode for the z0 instruction.
 
Method Summary
 java.lang.String getName()
          Getter for the name of the DVI instruction.
 int write(java.io.OutputStream stream)
          Write the code to the output stream.
 

Field Detail

POP

static final DviCode POP
The constant POP contains the DviCode for the pop instruction. This instruction doe not carry any parameters. Thus a singleton can be used.


PUSH

static final DviCode PUSH
The constant PUSH contains the DviCode for the push instruction. This instruction doe not carry any parameters. Thus a singleton can be used.


W0

static final DviCode W0
The constant W0 contains the DviCode for the w0 instruction. This instruction doe not carry any parameters. Thus a singleton can be used.


X0

static final DviCode X0
The constant X0 contains the DviCode for the x0 instruction. This instruction doe not carry any parameters. Thus a singleton can be used.


Y0

static final DviCode Y0
The constant X0 contains the DviCode for the y0 instruction. This instruction doe not carry any parameters. Thus a singleton can be used.


Z0

static final DviCode Z0
The constant Z0 contains the DviCode for the z0 instruction. This instruction doe not carry any parameters. Thus a singleton can be used.

Method Detail

getName

java.lang.String getName()
Getter for the name of the DVI instruction.

Returns:
the name of the DVI instruction

write

int write(java.io.OutputStream stream)
          throws java.io.IOException
Write the code to the output stream.

Parameters:
stream - the target stream
Returns:
the number of bytes actually written
Throws:
java.io.IOException - in case of an error