Package diva.gui

Class 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$
    Author:
    Heloise Hse, Michael Shilman
    Pt.AcceptedRating:
    Red
    • Constructor Summary

      Constructors 
      Constructor Description
      MultipageWriter​(ModelWriter pageWriter)
      Create a MultipageWriter with the specified model parser which is used to write the content of a page.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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