Class XercesUpdater

java.lang.Object
com.pnfsoftware.jeb.util.format.XercesUpdater

public class XercesUpdater extends Object
Update some Apache Xerces (XML parser) character tables used by the JDK. Limited to JDK version 8.

The tables do not exactly follow the latest revision of the XML 1.0 specifications, and require tweaking (via reflection hooks) in order to properly parse exotic tag names, eg, using high-value unicode characters.

Note: only the 1.0 table is updated with proper entries for NameStartChar and NameStart

Reference: https://www.w3.org/TR/xml/ (XML 1.0 5th edition)
Reference: https://www.w3.org/TR/2006/REC-xml11-20060816/ (XML 1.1 2nd edition)

  • Constructor Details

    • XercesUpdater

      public XercesUpdater()
      Create an updater using the system class loader.
    • XercesUpdater

      public XercesUpdater(ClassLoader cl)
      Create an updater using the provided class loader.
      Parameters:
      cl - class loader used to locate Xerces character table classes
  • Method Details

    • getModificationCount

      public int getModificationCount()
      Get the number of table entries modified by the last update operations.
      Returns:
      the cumulative modification count
    • update

      public int update()
      Update supported XML character tables.
      Returns:
      the number of tables that were found and processed