net.sf.okapi.common

## Class DefaultEntityResolver

- java.lang.Object
- - net.sf.okapi.common.DefaultEntityResolver

- All Implemented Interfaces:
    org.xml.sax.EntityResolver

      public class DefaultEntityResolver
      extends java.lang.Object
      implements org.xml.sax.EntityResolver

  Helper class that implement a default EntityResolver.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultEntityResolver()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.xml.sax.InputSource` | `resolveEntity(java.lang.String publicID, java.lang.String systemID)` Resolves a given entity to the input source for an empty XML document.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultEntityResolver

          public DefaultEntityResolver()

  - ### Method Detail

    - #### resolveEntity

          public org.xml.sax.InputSource resolveEntity(java.lang.String publicID,
                                                       java.lang.String systemID)
                                                throws org.xml.sax.SAXException,
                                                       java.io.IOException

      Resolves a given entity to the input source for an empty XML document.
      Specified by:
        `resolveEntity` in interface `org.xml.sax.EntityResolver`
      Parameters:
        `publicID` - The public ID of the entity.
        `systemID` - The system ID of the entity.
      Returns:
        The input source for the resolved entity. This default implementation always returns the input source for an empty XML document.
      Throws:
        `org.xml.sax.SAXException`
        `java.io.IOException`