Class IXOSXMLBuilder
- java.lang.Object
-
- com.saperion.ngc.viewer.virtualviewer.annotation.IXOSXMLBuilder
-
public class IXOSXMLBuilder extends java.lang.Object
- Author:
- rbo
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ANNOTATION_LINE_SEPARATOR
The string the "" part in Saperion annotations is replaced with. protected static com.saperion.common.logging.Logger
LOGGER
Logger.static java.lang.String
XML_ENCODING
The encoding of the resulting Xml.
-
Constructor Summary
Constructors Constructor Description IXOSXMLBuilder(java.lang.String in)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document
buildXml(int ixosPage)
Builds the xml.int
getCounter()
boolean
hasContent()
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 Detail
-
XML_ENCODING
public static final java.lang.String XML_ENCODING
The encoding of the resulting Xml.- See Also:
- Constant Field Values
-
ANNOTATION_LINE_SEPARATOR
public static final java.lang.String ANNOTATION_LINE_SEPARATOR
The string the "" part in Saperion annotations is replaced with. - See Also:
- Constant Field Values
-
LOGGER
protected static final com.saperion.common.logging.Logger LOGGER
Logger.
-
-
Method Detail
-
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 java.io.IOException
Update pages with IXOS annotations.- Parameters:
docPages
- Document pagesixosPage
- IXOS page- Returns:
- Updated document pages
- Throws:
java.io.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
-
-