de.dante.extex.backend.documentWriter.postscript
Class EpsWriter

java.lang.Object
  extended byde.dante.extex.backend.documentWriter.postscript.AbstractPostscriptWriter
      extended byde.dante.extex.backend.documentWriter.postscript.EpsWriter
All Implemented Interfaces:
ColorAware, Configurable, DocumentWriter, MultipleDocumentStream, ResourceConsumer

public class EpsWriter
extends AbstractPostscriptWriter

This document writer produces Encapsulated Postscript documents.

Version:
$Revision: 1.5 $
Author:
Gerd Neugebauer

Constructor Summary
EpsWriter(DocumentWriterOptions options)
          Creates a new object.
 
Method Summary
 void close()
          This method is invoked upon the end of the processing.
 java.lang.String getExtension()
          Getter for the extension associated with this kind of output.
 int shipout(Page p)
          This is the entry point for the document writer.
 
Methods inherited from class de.dante.extex.backend.documentWriter.postscript.AbstractPostscriptWriter
configure, getConverter, getParameter, newOutputStream, setColorConverter, setOutputStreamFactory, setParameter, setResourceFinder, writeDsc, writeDsc, writeFonts
 
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()
Description copied from interface: DocumentWriter
This method is invoked upon the end of the processing.

See Also:
DocumentWriter.close()

getExtension

public java.lang.String getExtension()
Description copied from interface: DocumentWriter
Getter for the extension associated with this kind of output. For instance pdf is the expected value for PDF files and dvi is the expected value for DVI files.

Returns:
the appropriate extension for file names
See Also:
DocumentWriter.getExtension()

shipout

public int shipout(Page p)
            throws GeneralException,
                   java.io.IOException
Description copied from interface: DocumentWriter
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:
p - the page to send
Returns:
returns the number of pages shipped
Throws:
java.io.IOException - in case of an IO exception
GeneralException - in case of a general exception
especially
DocumentWriterException in case of an error
See Also:
DocumentWriter.shipout( de.dante.extex.typesetter.type.page.Page)