Code example for URIResolver

Methods: resolve

0
  private InputStream resolveEntity (String publicId, String systemId)
    throws TransformerException 
  { 
    if (resolver != null)
      { 
        systemId = resolver.resolve (null, systemId).getSystemId ();
      } 
    if (systemId == null)
      { 
        return null; 
      } 
    try 
      { 
        URL url = new URL (systemId);
        return XMLJ.getInputStream (url);
      } 
    catch (IOException e)
      { 
        throw new TransformerException (e);
      } 
  }