de.dante.dviware.type
Class DviBop

java.lang.Object
  extended byde.dante.dviware.type.AbstractDviCode
      extended byde.dante.dviware.type.DviBop
All Implemented Interfaces:
DviCode

public class DviBop
extends AbstractDviCode

This class represents the DVI instruction bop.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Field Summary
 
Fields inherited from interface de.dante.dviware.type.DviCode
POP, PUSH, W0, X0, Y0, Z0
 
Constructor Summary
DviBop(int[] pageNo, int lastBop)
          Creates a new object.
 
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.
 
Methods inherited from class de.dante.dviware.type.AbstractDviCode
opcode, opcodeSigned, variant, write2, write3, write4
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DviBop

public DviBop(int[] pageNo,
              int lastBop)
Creates a new object.

Parameters:
pageNo - the array of page numbers
lastBop - the index of the last bop or -1 at the beginning
Method Detail

getName

public java.lang.String getName()
Description copied from interface: DviCode
Getter for the name f the DVI instruction.

Returns:
the name of the DVI instruction
See Also:
DviCode.getName()

write

public int write(java.io.OutputStream stream)
          throws java.io.IOException
Description copied from interface: DviCode
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
See Also:
DviCode.write(java.io.OutputStream)