Class IXOSXMLBuilder
- java.lang.Object
- 
- com.saperion.ngc.viewer.virtualviewer.annotation.IXOSXMLBuilder
 
- 
 public class IXOSXMLBuilder extends java.lang.Object- Author:
- rbo
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringANNOTATION_LINE_SEPARATORThe string the "" part in Saperion annotations is replaced with. protected static com.saperion.common.logging.LoggerLOGGERLogger.static java.lang.StringXML_ENCODINGThe encoding of the resulting Xml.
 - 
Constructor SummaryConstructors Constructor Description IXOSXMLBuilder(java.lang.String in)Constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocumentbuildXml(int ixosPage)Builds the xml.intgetCounter()booleanhasContent()voidsetDocumentImageSize(Node aDocumentImageSize)com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocPagesupdatePages(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 Detail- 
XML_ENCODINGpublic static final java.lang.String XML_ENCODING The encoding of the resulting Xml.- See Also:
- Constant Field Values
 
 - 
ANNOTATION_LINE_SEPARATORpublic static final java.lang.String ANNOTATION_LINE_SEPARATOR The string the "" part in Saperion annotations is replaced with. - See Also:
- Constant Field Values
 
 - 
LOGGERprotected static final com.saperion.common.logging.Logger LOGGER Logger.
 
- 
 - 
Method Detail- 
updatePagespublic com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocPages updatePages(com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.DocPages docPages, int ixosPage) throws java.io.IOExceptionUpdate pages with IXOS annotations.- Parameters:
- docPages- Document pages
- ixosPage- IXOS page
- Returns:
- Updated document pages
- Throws:
- java.io.IOException- Exception
 
 - 
hasContentpublic boolean hasContent() - Returns:
- Has content
 
 - 
buildXmlpublic 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
 
 - 
writeDocumentToByteArraypublic 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
 
 - 
setDocumentImageSizepublic void setDocumentImageSize(Node aDocumentImageSize) - Parameters:
- aDocumentImageSize- documentImageSize
 
 - 
getCounterpublic int getCounter() - Returns:
- Counter value
 
 
- 
 
-