Class CMLResolver

java.lang.Object
org.openscience.cdk.io.cml.CMLResolver
All Implemented Interfaces:
EntityResolver

public class CMLResolver extends Object implements EntityResolver
This class resolves DOCTYPE declaration for Chemical Markup Language (CML) files and uses a local version for validation. More information about CML can be found at http://www.xml-cml.org/.
Author:
Egon Willighagen <egonw@sci.kun.nl>
Source code:
main
Belongs to CDK module:
io
  • Constructor Details

    • CMLResolver

      public CMLResolver()
  • Method Details

    • getExternalSubset

      public InputSource getExternalSubset(String name, String baseURI)
      Not implemented: always returns null.
    • resolveEntity

      public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId)
      Not implemented, but uses resolveEntity(String publicId, String systemId) instead.
    • resolveEntity

      public InputSource resolveEntity(String publicId, String systemId)
      Resolves SYSTEM and PUBLIC identifiers for CML DTDs.
      Specified by:
      resolveEntity in interface EntityResolver
      Parameters:
      publicId - the PUBLIC identifier of the DTD (unused)
      systemId - the SYSTEM identifier of the DTD
      Returns:
      the CML DTD as an InputSource or null if id's unresolvable