org.extex.backend.documentWriter.postscript
Class EpsWriter

java.lang.Object
  extended by org.extex.backend.documentWriter.postscript.AbstractPostscriptWriter
      extended by org.extex.backend.documentWriter.postscript.EpsWriter
All Implemented Interfaces:
DocumentWriter, MultipleDocumentStream, ColorAware, FontAware, Configurable, ResourceAware

public class EpsWriter
extends AbstractPostscriptWriter

This document writer produces Encapsulated Postscript documents.

Version:
$Revision: 5923 $
Author:
Gerd Neugebauer

Field Summary
 
Fields inherited from class org.extex.backend.documentWriter.postscript.AbstractPostscriptWriter
COMMENT, DF
 
Constructor Summary
EpsWriter(DocumentWriterOptions options)
          Creates a new object.
 
Method Summary
 void close()
          This method is invoked upon the end of the processing.
 int shipout(Page page)
          This is the entry point for the document writer.
 
Methods inherited from class org.extex.backend.documentWriter.postscript.AbstractPostscriptWriter
configure, getConverter, getExtension, getFontFactory, getFontManager, getParameter, newOutputStream, setColorConverter, setExtension, setFontFactory, setOutputStreamFactory, setParameter, setResourceFinder, startFile, writeBoundingBox, writeDsc, writeFonts, writeHighResBoundingBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpsWriter

public EpsWriter(DocumentWriterOptions options)
Creates a new object.

Parameters:
options - the options for the document writer
Method Detail

close

public void close()
This method is invoked upon the end of the processing. It does simply nothing for this class since all pages have already been written out.

See Also:
DocumentWriter.close()

shipout

public int shipout(Page page)
            throws GeneralException,
                   java.io.IOException
This is the entry point for the document writer. Here it receives a complete node list to be sent to the output writer. It can be assumed that all values for width, height, and depth of the node lists are properly filled. Thus all information should be present to place the ink on the paper.

Parameters:
page - the page to send
Returns:
returns the number of pages shipped
Throws:
GeneralException - in case of a general exception
especially
DocumentWriterException in case of an error
java.io.IOException - in case of an IO exception
See Also:
DocumentWriter.shipout( org.extex.typesetter.type.page.Page)