Class StAXResolver

java.lang.Object
org.xmlresolver.StAXResolver
All Implemented Interfaces:
XMLResolver

public class StAXResolver extends Object implements XMLResolver
Implements the XMLResolver interface.

This interface is used to resolve resources during an XML parse. If an application wishes to perform custom entity resolution it must register an instance of this interface with the XMLInputFactory using the setXMLResolver method.

This class is distinct from the Resolver class because the resolveEntity method of the XMLResolver interface isn't compatible with the EntityResolver2 method of the same name.
See Also:
  • Field Details

  • Constructor Details

    • StAXResolver

      public StAXResolver()
      Creates a new instance of StAXResolver. The default resolver is a new ResourceResolver that uses a static catalog shared by all threads.
    • StAXResolver

      public StAXResolver(XMLResolverConfiguration config)
      Creates a new instance of a StAXResolver. Creates a resolver using a specific Catalog.
      Parameters:
      config - The XML Resolver configuration to use.
    • StAXResolver

      public StAXResolver(ResourceResolver resolver)
      Creates a new instance of a StAXResolver. Creates a resolver using a specific underlying ResourceResolver.
      Parameters:
      resolver - The resource resolver to use.
  • Method Details