de.dante.dviware
Class Dvi

java.lang.Object
  extended byde.dante.dviware.Dvi

public class Dvi
extends java.lang.Object

This class provides a DVI parser.

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer

Field Summary
static int BOP
          The field BOP contains the op-code for the BOP instruction.
static int DOWN1
          The field DOWN1 contains the op-code for the DOWN1 instruction.
static int DVI_ID
          The field DVI_ID contains the id of a dvi file.
static int DVI_UNIT_DENOMINATOR
          The field DVI_DEN contains the ...
static int DVI_UNIT_NUMERATOR
          The field DVI_NUM contains the ...
static int EOP
          The field EOP contains the op-code for the EOP instruction.
static int FNT_DEF1
          The field FNT_DEF1 contains the op-code for the FNT_DEF1 instruction.
static int FNT_DEF2
          The field FNT_DEF2 contains the ...
static int FNT_DEF3
          The field FNT_DEF3 contains the ...
static int FNT_DEF4
          The field FNT_DEF4 contains the ...
static int FNT_NUM_0
          The field FNT_NUM_0 contains the ...
static int FNT1
          The field FNT1 contains the op-code for the FNT1 instruction.
static int FNT2
          The field FNT2 contains the op-code for the FNT2 instruction.
static int FNT3
          The field FNT3 contains the op-code for the FNT3 instruction.
static int FNT4
          The field FNT4 contains the op-code for the FNT4 instruction.
static int NOP
          The field NOP contains the op-code for the NOP instruction.
static int PADDING_BYTE
          The field PADDING_BYTE contains the byte added at the end of the stream to align the length to a multiple of four.
static int POP
          The field POP contains the op-code for the POP instruction.
static int POST
          The field POST contains the op-code for the POST instruction.
static int POST_POST
          The field POST_POST contains the op-code for the POST_POST instruction.
static int PRE
          The field PRE contains the op-code for the PRE instruction.
static int PUSH
          The field PUSH contains the op-code for the PUSH instruction.
static int PUT_CHAR1
          The field PUT_CHAR1 contains the op-code for the PUT_CHAR1 instruction.
static int PUT_CHAR2
          The field PUT_CHAR2 contains the op-code for the PUT_CHAR2 instruction.
static int PUT_CHAR3
          The field PUT_CHAR3 contains the op-code for the PUT_CHAR3 instruction.
static int PUT_CHAR4
          The field PUT_CHAR4 contains the op-code for the PUT_CHAR4 instruction.
static int PUT_RULE
          The field PUT_RULE contains the op-code for the PUT_RULE instruction.
static int RIGHT1
          The field RIGHT1 contains the op-code for the RIGHT1 instruction.
static int RIGHT2
          The field RIGHT2 contains the op-code for the RIGHT2 instruction.
static int RIGHT3
          The field RIGHT3 contains the op-code for the RIGHT3 instruction.
static int RIGHT4
          The field RIGHT4 contains the op-code for the RIGHT4 instruction.
static int SET_CHAR_0
          The field SET_CHAR_0 contains the op-code for the SET_CHAR0 instruction.
static int SET_CHAR127
          The field SET_CHAR127 contains the op-code for the SET_CHAR127 instruction.
static int SET_RULE
          The field SET_RULE contains the op-code for the SET_RULE instruction.
static int SET1
          The field SET1 contains the op-code for the SET1 instruction.
static int SET2
          The field SET2 contains the op-code for the SET2 instruction.
static int SET3
          The field SET3 contains the op-code for the SET3 instruction.
static int SET4
          The field SET4 contains the op-code for the SET4 instruction.
static int W0
          The field W0 contains the op-code for the W0 instruction.
static int W1
          The field W1 contains the op-code for the W1 instruction.
static int W2
          The field W2 contains the op-code for the W2 instruction.
static int W3
          The field W3 contains the op-code for the W3 instruction.
static int W4
          The field W4 contains the op-code for the W4 instruction.
static int X0
          The field X0 contains the op-code for the X0 instruction.
static int X1
          The field X1 contains the op-code for the X1 instruction.
static int XXX1
          The field XXX1 contains the op-code for the XXX1 instruction.
static int XXX2
          The field XXX2 contains the op-code for the XXX2 instruction.
static int XXX3
          The field XXX3 contains the op-code for the XXX3 instruction.
static int XXX4
          The field XXX4 contains the op-code for the XXX4 instruction.
static int Y0
          The field Y0 contains the op-code for the Y0 instruction.
static int Y1
          The field Y1 contains the op-code for the Y1 instruction.
static int Z0
          The field Z0 contains the op-code for the Z0 instruction.
static int Z1
          The field Z1 contains the op-code for the Z1 instruction.
 
Constructor Summary
Dvi(java.io.InputStream dvi)
          Creates a new object.
 
Method Summary
 void parse(DviProcessor proc)
          Parse the input stream and invoke the callbacks on each code found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOP

public static final int BOP
The field BOP contains the op-code for the BOP instruction.

See Also:
Constant Field Values

DOWN1

public static final int DOWN1
The field DOWN1 contains the op-code for the DOWN1 instruction.

See Also:
Constant Field Values

DVI_ID

public static final int DVI_ID
The field DVI_ID contains the id of a dvi file.

See Also:
Constant Field Values

DVI_UNIT_DENOMINATOR

public static final int DVI_UNIT_DENOMINATOR
The field DVI_DEN contains the ...

See Also:
Constant Field Values

DVI_UNIT_NUMERATOR

public static final int DVI_UNIT_NUMERATOR
The field DVI_NUM contains the ...

See Also:
Constant Field Values

EOP

public static final int EOP
The field EOP contains the op-code for the EOP instruction.

See Also:
Constant Field Values

FNT_DEF1

public static final int FNT_DEF1
The field FNT_DEF1 contains the op-code for the FNT_DEF1 instruction.

See Also:
Constant Field Values

FNT_DEF2

public static final int FNT_DEF2
The field FNT_DEF2 contains the ...

See Also:
Constant Field Values

FNT_DEF3

public static final int FNT_DEF3
The field FNT_DEF3 contains the ...

See Also:
Constant Field Values

FNT_DEF4

public static final int FNT_DEF4
The field FNT_DEF4 contains the ...

See Also:
Constant Field Values

FNT_NUM_0

public static final int FNT_NUM_0
The field FNT_NUM_0 contains the ...

See Also:
Constant Field Values

FNT1

public static final int FNT1
The field FNT1 contains the op-code for the FNT1 instruction.

See Also:
Constant Field Values

FNT2

public static final int FNT2
The field FNT2 contains the op-code for the FNT2 instruction.

See Also:
Constant Field Values

FNT3

public static final int FNT3
The field FNT3 contains the op-code for the FNT3 instruction.

See Also:
Constant Field Values

FNT4

public static final int FNT4
The field FNT4 contains the op-code for the FNT4 instruction.

See Also:
Constant Field Values

NOP

public static final int NOP
The field NOP contains the op-code for the NOP instruction.

See Also:
Constant Field Values

PADDING_BYTE

public static final int PADDING_BYTE
The field PADDING_BYTE contains the byte added at the end of the stream to align the length to a multiple of four.

See Also:
Constant Field Values

POP

public static final int POP
The field POP contains the op-code for the POP instruction.

See Also:
Constant Field Values

POST

public static final int POST
The field POST contains the op-code for the POST instruction.

See Also:
Constant Field Values

POST_POST

public static final int POST_POST
The field POST_POST contains the op-code for the POST_POST instruction.

See Also:
Constant Field Values

PRE

public static final int PRE
The field PRE contains the op-code for the PRE instruction.

See Also:
Constant Field Values

PUSH

public static final int PUSH
The field PUSH contains the op-code for the PUSH instruction.

See Also:
Constant Field Values

PUT_CHAR1

public static final int PUT_CHAR1
The field PUT_CHAR1 contains the op-code for the PUT_CHAR1 instruction.

See Also:
Constant Field Values

PUT_CHAR2

public static final int PUT_CHAR2
The field PUT_CHAR2 contains the op-code for the PUT_CHAR2 instruction.

See Also:
Constant Field Values

PUT_CHAR3

public static final int PUT_CHAR3
The field PUT_CHAR3 contains the op-code for the PUT_CHAR3 instruction.

See Also:
Constant Field Values

PUT_CHAR4

public static final int PUT_CHAR4
The field PUT_CHAR4 contains the op-code for the PUT_CHAR4 instruction.

See Also:
Constant Field Values

PUT_RULE

public static final int PUT_RULE
The field PUT_RULE contains the op-code for the PUT_RULE instruction.

See Also:
Constant Field Values

RIGHT1

public static final int RIGHT1
The field RIGHT1 contains the op-code for the RIGHT1 instruction.

See Also:
Constant Field Values

RIGHT2

public static final int RIGHT2
The field RIGHT2 contains the op-code for the RIGHT2 instruction.

See Also:
Constant Field Values

RIGHT3

public static final int RIGHT3
The field RIGHT3 contains the op-code for the RIGHT3 instruction.

See Also:
Constant Field Values

RIGHT4

public static final int RIGHT4
The field RIGHT4 contains the op-code for the RIGHT4 instruction.

See Also:
Constant Field Values

SET_CHAR_0

public static final int SET_CHAR_0
The field SET_CHAR_0 contains the op-code for the SET_CHAR0 instruction.

See Also:
Constant Field Values

SET_CHAR127

public static final int SET_CHAR127
The field SET_CHAR127 contains the op-code for the SET_CHAR127 instruction.

See Also:
Constant Field Values

SET_RULE

public static final int SET_RULE
The field SET_RULE contains the op-code for the SET_RULE instruction.

See Also:
Constant Field Values

SET1

public static final int SET1
The field SET1 contains the op-code for the SET1 instruction.

See Also:
Constant Field Values

SET2

public static final int SET2
The field SET2 contains the op-code for the SET2 instruction.

See Also:
Constant Field Values

SET3

public static final int SET3
The field SET3 contains the op-code for the SET3 instruction.

See Also:
Constant Field Values

SET4

public static final int SET4
The field SET4 contains the op-code for the SET4 instruction.

See Also:
Constant Field Values

W0

public static final int W0
The field W0 contains the op-code for the W0 instruction.

See Also:
Constant Field Values

W1

public static final int W1
The field W1 contains the op-code for the W1 instruction.

See Also:
Constant Field Values

W2

public static final int W2
The field W2 contains the op-code for the W2 instruction.

See Also:
Constant Field Values

W3

public static final int W3
The field W3 contains the op-code for the W3 instruction.

See Also:
Constant Field Values

W4

public static final int W4
The field W4 contains the op-code for the W4 instruction.

See Also:
Constant Field Values

X0

public static final int X0
The field X0 contains the op-code for the X0 instruction.

See Also:
Constant Field Values

X1

public static final int X1
The field X1 contains the op-code for the X1 instruction.

See Also:
Constant Field Values

XXX1

public static final int XXX1
The field XXX1 contains the op-code for the XXX1 instruction.

See Also:
Constant Field Values

XXX2

public static final int XXX2
The field XXX2 contains the op-code for the XXX2 instruction.

See Also:
Constant Field Values

XXX3

public static final int XXX3
The field XXX3 contains the op-code for the XXX3 instruction.

See Also:
Constant Field Values

XXX4

public static final int XXX4
The field XXX4 contains the op-code for the XXX4 instruction.

See Also:
Constant Field Values

Y0

public static final int Y0
The field Y0 contains the op-code for the Y0 instruction.

See Also:
Constant Field Values

Y1

public static final int Y1
The field Y1 contains the op-code for the Y1 instruction.

See Also:
Constant Field Values

Z0

public static final int Z0
The field Z0 contains the op-code for the Z0 instruction.

See Also:
Constant Field Values

Z1

public static final int Z1
The field Z1 contains the op-code for the Z1 instruction.

See Also:
Constant Field Values
Constructor Detail

Dvi

public Dvi(java.io.InputStream dvi)
Creates a new object.

Parameters:
dvi - the input stream
Method Detail

parse

public void parse(DviProcessor proc)
           throws java.io.IOException
Parse the input stream and invoke the callbacks on each code found.

Parameters:
proc - the processor which defines the callback methods invoked when a matching DVI instruction has been read
Throws:
java.io.IOException - in case of an error