org.jscience.io.openmath
Class PrettyPrint

java.lang.Object
  extended by org.jscience.io.openmath.PrettyPrint

public class PrettyPrint
extends java.lang.Object

Pretty prints an OpenMath object.


Constructor Summary
PrettyPrint()
           
 
Method Summary
static void main(java.lang.String[] fArguments)
          Invokes the pretty-printer stand-alone.
 void prettyPrint()
          Validates the document.
 void setInputStream(java.io.InputStream input)
          Sets the input-stream.
 void setOutputStream(java.io.OutputStream output)
          Sets the output-stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrint

public PrettyPrint()
Method Detail

setOutputStream

public final void setOutputStream(java.io.OutputStream output)
Sets the output-stream.

Parameters:
output - set the output stream.

setInputStream

public final void setInputStream(java.io.InputStream input)
Sets the input-stream.

Parameters:
input - set the input stream.

prettyPrint

public void prettyPrint()
                 throws java.lang.Exception
Validates the document.

Throws:
java.lang.Exception - throw if we cannot pretty print the document for some obscure reason.

main

public static void main(java.lang.String[] fArguments)
Invokes the pretty-printer stand-alone.

Parameters:
fArguments - the arguments passed to the program.