Class XmlBuilder
java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.XmlBuilder
Resolve INI Format into Snowbound XML Annotation Format.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document
Builds the xml.static BufferedReader
getBufferedReader
(String iniData) Get The BufferedReader from a iniData String.Parses the annotations defined by the specified ini-string and returns a list of parsed sections.void
setDocumentImageSize
(Node aDocumentImageSize) static byte[]
writeDocumentToByteArray
(com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document document) Write the given xml Snowbound Document to byte Array .
-
Field Details
-
DOUBLEBYTE_ENCODING
Constant for double byte encoding.- See Also:
-
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
-
XmlBuilder
public XmlBuilder()
-
-
Method Details
-
parseIni
Parses the annotations defined by the specified ini-string and returns a list of parsed sections.- Parameters:
iniContent
- content of the ini-file as string- Returns:
- list of sections
-
buildXml
public com.saperion.ngc.viewer.virtualviewer.annotation.xml.elements.Document buildXml(List<Section> parsedIniSections, String ixosAnnotationsIni, int ixosPage) Builds the xml.- Parameters:
parsedIniSections
- the parsed ini sectionsixosAnnotationsIni
- IXOS annotationsixosPage
- IXOS Page- Returns:
- the document
-
getBufferedReader
Get The BufferedReader from a iniData String.- Parameters:
iniData
- iniData- Returns:
- br BufferedReader
-
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
-