org.extex.ocpware.writer
Class OcpExTeXWriter

java.lang.Object
  extended by org.extex.ocpware.writer.AbstractWriter
      extended by org.extex.ocpware.writer.OcpExTeXWriter
All Implemented Interfaces:
OcpWriter

public class OcpExTeXWriter
extends AbstractWriter

This writer for an ΩCP is meant for pretty-printing.

Version:
$Revision: 6447 $
Author:
Gerd Neugebauer

Constructor Summary
OcpExTeXWriter()
          Creates a new object.
 
Method Summary
protected  void print(java.io.PrintStream out, java.lang.String key, int value)
          Print a number as hex and as decimal and optionally as character to an output stream.
 void write(java.io.OutputStream stream, OcpProgram ocp)
          Write the ΩCP program to an output stream.
 
Methods inherited from class org.extex.ocpware.writer.AbstractWriter
booleanResource, format, room
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OcpExTeXWriter

public OcpExTeXWriter()
Creates a new object.

Method Detail

print

protected void print(java.io.PrintStream out,
                     java.lang.String key,
                     int value)
Print a number as hex and as decimal and optionally as character to an output stream.

Parameters:
out - the output stream
key - the resource bundle key
value - the value to print

write

public void write(java.io.OutputStream stream,
                  OcpProgram ocp)
           throws java.io.IOException
Write the ΩCP program to an output stream.

Parameters:
stream - the output stream
ocp - the ocp program
Throws:
java.io.IOException - in case of an error
See Also:
OcpOmegaWriter.write(java.io.OutputStream, org.extex.ocpware.type.OcpProgram)