Class XmlResolver
java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.XmlResolver
Converts annotations from XML to INI.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.saperion.common.logging.Logger
Logger. -
Constructor Summary
ConstructorsConstructorDescriptionXmlResolver
(int originalCount, Map<Integer, Integer> rotationAngles) Instantiates a new xml resolver. -
Method Summary
Modifier and TypeMethodDescriptionconvertXmlToIni
(byte[] xmlAnnotations) Converts the annotations in XML format to INI format.
-
Field Details
-
LOGGER
protected static final com.saperion.common.logging.Logger LOGGERLogger.
-
-
Constructor Details
-
XmlResolver
Instantiates a new xml resolver.- Parameters:
originalCount
- the original annotation countrotationAngles
- the angles in degrees the document's pages were rotated
-
-
Method Details
-
convertXmlToIni
public String convertXmlToIni(byte[] xmlAnnotations) throws jakarta.xml.bind.JAXBException, SAXException Converts the annotations in XML format to INI format.- Parameters:
xmlAnnotations
- annotations in XML format- Returns:
- annotations in INI format
- Throws:
SAXException
- parsing xmlAnnotations failedjakarta.xml.bind.JAXBException
- parsing xmlAnnotations failed
-