Class JadiceXmlBuilder
java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.JadiceXmlBuilder
Resolve INI Format into Jadice XML Annotation Format.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.saperion.ngc.viewer.virtualviewer.jadice.xml.Annotations
Builds the xml.static BufferedReader
getBufferedReader
(String iniData) Get The BufferedReader from a iniData String.getSectionsByPage
(List<Section> components) Get the Annotations sorted by Page The Hashmap key is the PageNumber, The Hashmap value is a ArrayList of Sections.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.jadice.xml.Annotations 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
-
JadiceXmlBuilder
public JadiceXmlBuilder()
-
-
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.jadice.xml.Annotations buildXml(List<Section> parsedIniSections, String ixosAnnotationsIni, int ixosPage) Builds the xml.- Parameters:
parsedIniSections
- the parsed ini sectionsixosAnnotationsIni
- IXOS annotationsixosPage
- IXOS Page- Returns:
- the document
-
getSectionsByPage
Get the Annotations sorted by Page The Hashmap key is the PageNumber, The Hashmap value is a ArrayList of Sections.- Parameters:
components
- components- Returns:
- pageSections
-
getBufferedReader
Get The BufferedReader from a iniData String.- Parameters:
iniData
- iniData- Returns:
- br BufferedReader
-
writeDocumentToByteArray
public static byte[] writeDocumentToByteArray(com.saperion.ngc.viewer.virtualviewer.jadice.xml.Annotations document) Write the given xml Snowbound Document to byte Array .- Parameters:
document
- document- Returns:
- byteArrayOutputStream byteArrayOutputStream
-
setDocumentImageSize
- Parameters:
aDocumentImageSize
- documentImageSize
-