Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        protected static final com.saperion.common.logging.Logger LOGGER
        Logger.
    • 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 count
        rotationAngles - 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 failed
        javax.xml.bind.JAXBException - parsing xmlAnnotations failed