Code example for EntityResolver

Methods: resolveEntity

0
String url = XMLJ.getAbsoluteURI(base, systemId);
    InputStream in = null;
    if (entityResolver != null)
      { 
        InputSource source = entityResolver.resolveEntity(publicId, url);
        if (source != null)
          { 
            in = XMLJ.getInputStream(source);
          } 
      } 
    if (in == null)
      { 
        in  = XMLJ.getInputStream(new URL(url));
      } 
    return in;
  } 
 
  private void warning(String message,
                       int lineNumber,
                       int columnNumber,