org.springframework.beans.factory.xml

## 类 DelegatingEntityResolver

- java.lang.Object
- - org.springframework.beans.factory.xml.DelegatingEntityResolver

- 所有已实现的接口:
    EntityResolver
  直接已知子类:
    ResourceEntityResolver

      public class DelegatingEntityResolver
      extends Object
      implements EntityResolver

  `EntityResolver` implementation that delegates to a `BeansDtdResolver` and a `PluggableSchemaResolver` for DTDs and XML schemas, respectively.
  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller, Rick Evans
  另请参阅:
    `BeansDtdResolver`, `PluggableSchemaResolver`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `DTD_SUFFIX` Suffix for DTD files
    `static String` | `XSD_SUFFIX` Suffix for schema definition files

  - ### 构造器概要

    构造器
    构造器和说明
    `DelegatingEntityResolver(ClassLoader classLoader)` Create a new DelegatingEntityResolver that delegates to a default `BeansDtdResolver` and a default `PluggableSchemaResolver`.
    `DelegatingEntityResolver(EntityResolver dtdResolver, EntityResolver schemaResolver)` Create a new DelegatingEntityResolver that delegates to the given `EntityResolvers`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `InputSource` | `resolveEntity(String publicId, String systemId)`
    `String` | `toString()`

    - ### 从类继承的方法 java.lang.Object

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

- - ### 字段详细资料

    - #### DTD_SUFFIX

          public static final String DTD_SUFFIX

      Suffix for DTD files
      另请参阅:
        常量字段值

    - #### XSD_SUFFIX

          public static final String XSD_SUFFIX

      Suffix for schema definition files
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### DelegatingEntityResolver

          public DelegatingEntityResolver(@Nullable
                                          ClassLoader classLoader)

      Create a new DelegatingEntityResolver that delegates to a default `BeansDtdResolver` and a default `PluggableSchemaResolver`.

      Configures the `PluggableSchemaResolver` with the supplied `ClassLoader`.

      参数:
        `classLoader` - the ClassLoader to use for loading (can be `null`) to use the default ClassLoader)

    - #### DelegatingEntityResolver

          public DelegatingEntityResolver(EntityResolver dtdResolver,
                                          EntityResolver schemaResolver)

      Create a new DelegatingEntityResolver that delegates to the given `EntityResolvers`.
      参数:
        `dtdResolver` - the EntityResolver to resolve DTDs with
        `schemaResolver` - the EntityResolver to resolve XML schemas with

  - ### 方法详细资料

    - #### resolveEntity

          @Nullable
          public InputSource resolveEntity(@Nullable
                                                      String publicId,
                                                      @Nullable
                                                      String systemId)
                                               throws SAXException,
                                                      IOException

      指定者:
        `resolveEntity` 在接口中 `EntityResolver`
      抛出:
        `SAXException`
        `IOException`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`