Class XmlResolver
- java.lang.Object
-
- com.saperion.ngc.viewer.virtualviewer.annotation.XmlResolver
-
public class XmlResolver extends java.lang.Object
Converts annotations from XML to INI.
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.saperion.common.logging.Logger
LOGGER
Logger.
-
Constructor Summary
Constructors Constructor Description XmlResolver(int originalCount, java.util.Map<java.lang.Integer,java.lang.Integer> rotationAngles)
Instantiates a new xml resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
convertXmlToIni(byte[] xmlAnnotations)
Converts the annotations in XML format to INI format.
-
-
-
Constructor Detail
-
XmlResolver
public XmlResolver(int originalCount, java.util.Map<java.lang.Integer,java.lang.Integer> rotationAngles)
Instantiates a new xml resolver.- Parameters:
originalCount
- the original annotation countrotationAngles
- the angles in degrees the document's pages were rotated
-
-
Method Detail
-
convertXmlToIni
public java.lang.String convertXmlToIni(byte[] xmlAnnotations) throws javax.xml.bind.JAXBException, org.xml.sax.SAXException
Converts the annotations in XML format to INI format.- Parameters:
xmlAnnotations
- annotations in XML format- Returns:
- annotations in INI format
- Throws:
org.xml.sax.SAXException
- parsing xmlAnnotations failedjavax.xml.bind.JAXBException
- parsing xmlAnnotations failed
-
-