de.dante.extex.backend.pageFilter
Class PageReverser

java.lang.Object
  extended byde.dante.extex.backend.pageFilter.PageReverser
All Implemented Interfaces:
PagePipe

public class PageReverser
extends java.lang.Object
implements PagePipe

This page filter reverses the order of the pages shipped out.

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer

Constructor Summary
PageReverser()
          Creates a new object.
 
Method Summary
 void close()
          This method is invoked upon the end of the processing.
 void setOutput(PagePipe pipe)
          Setter for the output node pipe.
 void setParameter(java.lang.String name, java.lang.String value)
          Setter for a named parameter.
 void shipout(Page page)
          This is the entry point for the document writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageReverser

public PageReverser()
Creates a new object.

Method Detail

close

public void close()
           throws BackendException
Description copied from interface: PagePipe
This method is invoked upon the end of the processing.

Specified by:
close in interface PagePipe
Throws:
BackendException - in case of a back-end error
See Also:
PagePipe.close()

setOutput

public void setOutput(PagePipe pipe)
Description copied from interface: PagePipe
Setter for the output node pipe.

Specified by:
setOutput in interface PagePipe
Parameters:
pipe - the output node pipe
See Also:
PagePipe.setOutput( de.dante.extex.backend.pageFilter.PagePipe)

setParameter

public void setParameter(java.lang.String name,
                         java.lang.String value)
Description copied from interface: PagePipe
Setter for a named parameter. Parameters are a general mechanism to influence the behavior of the document writer. Any parameter not known by the document writer has to be ignored.

Specified by:
setParameter in interface PagePipe
Parameters:
name - the name of the parameter
value - the value of the parameter
See Also:
PagePipe.setParameter( java.lang.String, java.lang.String)

shipout

public void shipout(Page page)
             throws DocumentWriterException
Description copied from interface: PagePipe
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.

Specified by:
shipout in interface PagePipe
Parameters:
page - the nodes to send
Throws:
DocumentWriterException
See Also:
PagePipe.shipout( de.dante.extex.typesetter.type.page.Page)