Class JadiceXmlBuilder
java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.JadiceXmlBuilder
Resolve INI Format into Jadice XML Annotation Format.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.saperion.ngc.viewer.virtualviewer.jadice.xml.AnnotationsBuilds the xml.static BufferedReadergetBufferedReader(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.voidsetDocumentImageSize(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_ENCODINGConstant for double byte encoding.- See Also:
 
- 
XML_ENCODINGThe encoding of the resulting Xml.- See Also:
 
- 
ANNOTATION_LINE_SEPARATORThe string the "" part in Saperion annotations is replaced with. - See Also:
 
- 
LOGGERprotected static final com.saperion.common.logging.Logger LOGGERLogger.
 
- 
- 
Constructor Details- 
JadiceXmlBuilderpublic JadiceXmlBuilder()
 
- 
- 
Method Details- 
parseIniParses 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
 
- 
buildXmlpublic com.saperion.ngc.viewer.virtualviewer.jadice.xml.Annotations buildXml(List<Section> parsedIniSections, String ixosAnnotationsIni, int ixosPage) Builds the xml.- Parameters:
- parsedIniSections- the parsed ini sections
- ixosAnnotationsIni- IXOS annotations
- ixosPage- IXOS Page
- Returns:
- the document
 
- 
getSectionsByPageGet the Annotations sorted by Page The Hashmap key is the PageNumber, The Hashmap value is a ArrayList of Sections.- Parameters:
- components- components
- Returns:
- pageSections
 
- 
getBufferedReaderGet The BufferedReader from a iniData String.- Parameters:
- iniData- iniData
- Returns:
- br BufferedReader
 
- 
writeDocumentToByteArraypublic 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
 
 
-