Class IXOSXMLBuilder
java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.IXOSXMLBuilder
- Author:
- rbo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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 .
-
Field Details
-
XML_ENCODING
The encoding of the resulting Xml.- See Also:
-
ANNOTATION_LINE_SEPARATOR
The string the "" part in Saperion annotations is replaced with. - See Also:
-
LOGGER
protected static final com.saperion.common.logging.Logger LOGGERLogger.
-
-
Constructor Details
-
IXOSXMLBuilder
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 pagesixosPage
- 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
- Parameters:
aDocumentImageSize
- documentImageSize
-
getCounter
public int getCounter()- Returns:
- Counter value
-