diva.gui
Class MultipageWriter

java.lang.Object
  extended bydiva.gui.MultipageWriter

public class MultipageWriter
extends java.lang.Object

MultipageWriter writes out all pages of a multi-page document to a file. The document writer must be provided with a model writer which is used to write out the app-specific model on a single page.

Version:
$Id: MultipageWriter.java,v 1.9 2004/04/13 22:16:01 cxh Exp $
Author:
Heloise Hse, Michael Shilman
Accepted Rating:
Red

Constructor Summary
MultipageWriter(ModelWriter pageWriter)
          Create a MultipageWriter with the specified model parser which is used to write the content of a page.
 
Method Summary
 void write(MultipageModel multipage, java.io.Writer out)
          Write the given document to the character stream (out).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipageWriter

public MultipageWriter(ModelWriter pageWriter)
Create a MultipageWriter with the specified model parser which is used to write the content of a page.

Method Detail

write

public void write(MultipageModel multipage,
                  java.io.Writer out)
           throws java.io.IOException
Write the given document to the character stream (out). Use the given page writer to write out each page in the document.

Throws:
java.io.IOException