All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface fr.inria.openmath.omapi.StreamPrinter

public interface StreamPrinter
extends Printer
Extends the basic Printer interface to use Streams as output.

All OpenMath StreamPrinters must implement this basic interface: it allows applications to output OpenMath objects on character streams.


Method Index

 o getOutput()
Allows an application to get the current output destination.
 o setOutput(OutputStream)
Allows an application to set the output destination.

Methods

 o setOutput
 public abstract void setOutput(OutputStream output) throws OMException
Allows an application to set the output destination.

Sets the output destination for all put*() methods is. The output stream may be changed during print. But, this is legal only between two OpenMath object output. Or else a OMException is thrown . and current output stream is not changed.

Parameters:
output - the new output destination
Throws: OMException
Any OpenMath exception
 o getOutput
 public abstract OutputStream getOutput()
Allows an application to get the current output destination.

Gets the current output destination.

Returns:
the cureent output destination (or NULL if none is set)

All Packages  Class Hierarchy  This Package  Previous  Next  Index