Class IXOSXMLBuilder

java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.IXOSXMLBuilder

public class IXOSXMLBuilder extends Object
Author:
rbo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The string the "" part in Saperion annotations is replaced with.
    protected static final com.saperion.common.logging.Logger
    Logger.
    static final String
    The encoding of the resulting Xml.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document
    buildXml(int ixosPage)
    Builds the xml.
    int
     
    boolean
     
    void
    setDocumentImageSize(Node aDocumentImageSize)
     
    com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocPages
    updatePages(com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocPages docPages, int ixosPage)
    Update pages with IXOS annotations.
    static byte[]
    writeDocumentToByteArray(com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document document)
    Write the given xml Snowbound Document to byte Array .

    Methods inherited from class java.lang.Object

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

    • XML_ENCODING

      public static final String XML_ENCODING
      The encoding of the resulting Xml.
      See Also:
    • ANNOTATION_LINE_SEPARATOR

      public static final String ANNOTATION_LINE_SEPARATOR
      The string the "" part in Saperion annotations is replaced with.
      See Also:
    • LOGGER

      protected static final com.saperion.common.logging.Logger LOGGER
      Logger.
  • Constructor Details

    • IXOSXMLBuilder

      public IXOSXMLBuilder(String in)
      Constructor.
      Parameters:
      in - Annotation text
  • Method Details

    • updatePages

      public com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocPages updatePages(com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocPages docPages, int ixosPage) throws IOException
      Update pages with IXOS annotations.
      Parameters:
      docPages - Document pages
      ixosPage - IXOS page
      Returns:
      Updated document pages
      Throws:
      IOException - Exception
    • hasContent

      public boolean hasContent()
      Returns:
      Has content
    • buildXml

      public com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document buildXml(int ixosPage)
      Builds the xml.
      Parameters:
      ixosPage - the number of the ixos page
      Returns:
      the document
    • writeDocumentToByteArray

      public static byte[] writeDocumentToByteArray(com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document document)
      Write the given xml Snowbound Document to byte Array .
      Parameters:
      document - document
      Returns:
      byteArrayOutputStream byteArrayOutputStream
    • setDocumentImageSize

      public void setDocumentImageSize(Node aDocumentImageSize)
      Parameters:
      aDocumentImageSize - documentImageSize
    • getCounter

      public int getCounter()
      Returns:
      Counter value