Package org.openscience.cdk.io.cml
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 Summary
Constructors Constructor Description CMLResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSource
getExternalSubset(String name, String baseURI)
Not implemented: always returns null.InputSource
resolveEntity(String publicId, String systemId)
Resolves SYSTEM and PUBLIC identifiers for CML DTDs.InputSource
resolveEntity(String name, String publicId, String baseURI, String systemId)
Not implemented, but uses resolveEntity(String publicId, String systemId) instead.
-
-
-
Method Detail
-
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 interfaceEntityResolver
- 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
-
-