de.dante.dviware.type
Interface DviCode

All Known Implementing Classes:
AbstractDviCode

public interface DviCode

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

Version:
$Revision: 1.2 $
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 f the DVI instruction.
 int write(java.io.OutputStream stream)
          Write the code to the output stream.
 

Field Detail

POP

public 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

public 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

public 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

public 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

public 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

public 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

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

Returns:
the name of the DVI instruction

write

public 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