Class DocumentXpp3Writer


  • public class DocumentXpp3Writer
    extends java.lang.Object
    Class DocumentXpp3Writer.
    Version:
    $Revision$ $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String fileComment
      Field fileComment.
      private static java.lang.String NAMESPACE
      Field NAMESPACE.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setFileComment​(java.lang.String fileComment)
      Method setFileComment.
      void write​(java.io.OutputStream stream, DocumentModel documentModel)
      Method write.
      void write​(java.io.Writer writer, DocumentModel documentModel)
      Method write.
      private void writeDocumentAuthor​(DocumentAuthor documentAuthor, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentAuthor.
      private void writeDocumentCover​(DocumentCover documentCover, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentCover.
      private void writeDocumentHyperlinkBehaviour​(DocumentHyperlinkBehaviour documentHyperlinkBehaviour, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentHyperlinkBehaviour.
      private void writeDocumentMeta​(DocumentMeta documentMeta, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentMeta.
      private void writeDocumentModel​(DocumentModel documentModel, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentModel.
      private void writeDocumentStatistic​(DocumentStatistic documentStatistic, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentStatistic.
      private void writeDocumentTemplate​(DocumentTemplate documentTemplate, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentTemplate.
      private void writeDocumentTOC​(DocumentTOC documentTOC, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentTOC.
      private void writeDocumentTOCItem​(DocumentTOCItem documentTOCItem, java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
      Method writeDocumentTOCItem.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NAMESPACE

        private static final java.lang.String NAMESPACE
        Field NAMESPACE.
      • fileComment

        private java.lang.String fileComment
        Field fileComment.
    • Constructor Detail

      • DocumentXpp3Writer

        public DocumentXpp3Writer()
    • Method Detail

      • setFileComment

        public void setFileComment​(java.lang.String fileComment)
        Method setFileComment.
        Parameters:
        fileComment -
      • write

        public void write​(java.io.Writer writer,
                          DocumentModel documentModel)
                   throws java.io.IOException
        Method write.
        Parameters:
        writer -
        documentModel -
        Throws:
        java.io.IOException
      • write

        public void write​(java.io.OutputStream stream,
                          DocumentModel documentModel)
                   throws java.io.IOException
        Method write.
        Parameters:
        stream -
        documentModel -
        Throws:
        java.io.IOException
      • writeDocumentAuthor

        private void writeDocumentAuthor​(DocumentAuthor documentAuthor,
                                         java.lang.String tagName,
                                         org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                  throws java.io.IOException
        Method writeDocumentAuthor.
        Parameters:
        documentAuthor -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentCover

        private void writeDocumentCover​(DocumentCover documentCover,
                                        java.lang.String tagName,
                                        org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                 throws java.io.IOException
        Method writeDocumentCover.
        Parameters:
        documentCover -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentHyperlinkBehaviour

        private void writeDocumentHyperlinkBehaviour​(DocumentHyperlinkBehaviour documentHyperlinkBehaviour,
                                                     java.lang.String tagName,
                                                     org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                              throws java.io.IOException
        Method writeDocumentHyperlinkBehaviour.
        Parameters:
        documentHyperlinkBehaviour -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentMeta

        private void writeDocumentMeta​(DocumentMeta documentMeta,
                                       java.lang.String tagName,
                                       org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                throws java.io.IOException
        Method writeDocumentMeta.
        Parameters:
        documentMeta -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentModel

        private void writeDocumentModel​(DocumentModel documentModel,
                                        java.lang.String tagName,
                                        org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                 throws java.io.IOException
        Method writeDocumentModel.
        Parameters:
        documentModel -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentStatistic

        private void writeDocumentStatistic​(DocumentStatistic documentStatistic,
                                            java.lang.String tagName,
                                            org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                     throws java.io.IOException
        Method writeDocumentStatistic.
        Parameters:
        documentStatistic -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentTOC

        private void writeDocumentTOC​(DocumentTOC documentTOC,
                                      java.lang.String tagName,
                                      org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                               throws java.io.IOException
        Method writeDocumentTOC.
        Parameters:
        documentTOC -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentTOCItem

        private void writeDocumentTOCItem​(DocumentTOCItem documentTOCItem,
                                          java.lang.String tagName,
                                          org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                   throws java.io.IOException
        Method writeDocumentTOCItem.
        Parameters:
        documentTOCItem -
        serializer -
        tagName -
        Throws:
        java.io.IOException
      • writeDocumentTemplate

        private void writeDocumentTemplate​(DocumentTemplate documentTemplate,
                                           java.lang.String tagName,
                                           org.codehaus.plexus.util.xml.pull.XmlSerializer serializer)
                                    throws java.io.IOException
        Method writeDocumentTemplate.
        Parameters:
        documentTemplate -
        serializer -
        tagName -
        Throws:
        java.io.IOException