org.extex.backend.documentWriter.postscript.converter
Class AbstractConverter

java.lang.Object
  extended by org.extex.backend.documentWriter.postscript.converter.AbstractConverter
All Implemented Interfaces:
PsConverter
Direct Known Subclasses:
PsBasicConverter, PsBoxConverter

public abstract class AbstractConverter
extends java.lang.Object
implements PsConverter

This is the abstract base class for an PS converter.

Version:
$Revision: 6358 $
Author:
Gerd Neugebauer

Constructor Summary
AbstractConverter()
          Creates a new object.
 
Method Summary
protected  FontManager getFontManager()
          Getter for fontManager.
 void init(HeaderManager headerMan, FontManager fontMan)
          Perform some initializations for each document.
 void setResourceFinder(ResourceFinder resourceFinder)
          
protected  void treatSpecial(java.io.PrintStream out, SpecialNode specialNode)
          Process a special node.
 void writeHeaders(java.io.PrintStream stream)
          Write the header to the target stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.backend.documentWriter.postscript.converter.PsConverter
toPostScript
 

Constructor Detail

AbstractConverter

public AbstractConverter()
Creates a new object.

Method Detail

getFontManager

protected FontManager getFontManager()
Getter for fontManager.

Returns:
the fontManager

init

public void init(HeaderManager headerMan,
                 FontManager fontMan)
          throws java.io.IOException
Perform some initializations for each document.

Specified by:
init in interface PsConverter
Parameters:
headerMan - the header manager
fontMan - the font manager
Throws:
java.io.IOException - in case of an IO exception
See Also:
PsConverter.init( org.extex.backend.documentWriter.postscript.util.HeaderManager, org.extex.backend.documentWriter.postscript.util.FontManager)

setResourceFinder

public void setResourceFinder(ResourceFinder resourceFinder)

See Also:
org.extex.resource.ResourceAware#setResourceFinder( org.extex.resource.ResourceFinder)

treatSpecial

protected void treatSpecial(java.io.PrintStream out,
                            SpecialNode specialNode)
                     throws GeneralException
Process a special node.

Parameters:
out - the output stream
specialNode - the node
Throws:
GeneralException - in case of an error

writeHeaders

public void writeHeaders(java.io.PrintStream stream)
                  throws java.io.IOException
Write the header to the target stream.

Specified by:
writeHeaders in interface PsConverter
Parameters:
stream - the target stream
Throws:
java.io.IOException - in case of an I/O error
See Also:
PsConverter.writeHeaders( PrintStream)