org.extex.dviware.type
Class DviPutChar

java.lang.Object
  extended by org.extex.dviware.type.AbstractDviCode
      extended by org.extex.dviware.type.DviPutChar
All Implemented Interfaces:
DviCode

public class DviPutChar
extends AbstractDviCode

This class represents the DVI instruction put_char.

Version:
$Revision: 5585 $
Author:
Gerd Neugebauer

Field Summary
 
Fields inherited from class org.extex.dviware.type.AbstractDviCode
ONE_BYTE_MASK, THREE_BYTE_MASK, TWO_BYTE_MASK
 
Fields inherited from interface org.extex.dviware.type.DviCode
POP, PUSH, W0, X0, Y0, Z0
 
Constructor Summary
DviPutChar(int codePoint)
          Creates a new object.
 
Method Summary
 int write(java.io.OutputStream stream)
          Write the code to the output stream.
 
Methods inherited from class org.extex.dviware.type.AbstractDviCode
getName, 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

DviPutChar

public DviPutChar(int codePoint)
Creates a new object.

Parameters:
codePoint - the code point of the character
Method Detail

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
See Also:
DviCode.write(java.io.OutputStream)