Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.xerces.util;
 
 import java.io.Reader;
  implements XMLEntityResolver
  {
  }
  public EntityResolverWrapper(EntityResolver paramEntityResolver)
  {
    setEntityResolver(paramEntityResolver);
  }
  public void setEntityResolver(EntityResolver paramEntityResolver)
  {
    this.fEntityResolver = paramEntityResolver;
  }
  {
    return this.fEntityResolver;
  }
  public XMLInputSource resolveEntity(XMLResourceIdentifier paramXMLResourceIdentifier)
    throws XNIExceptionIOException
  {
    String str1 = paramXMLResourceIdentifier.getPublicId();
    String str2 = paramXMLResourceIdentifier.getExpandedSystemId();
    if ((str1 == null) && (str2 == null))
      return null;
    if ((this.fEntityResolver != null) && (paramXMLResourceIdentifier != null))
      try
      {
        InputSource localInputSource = this.fEntityResolver.resolveEntity(str1, str2);
        if (localInputSource != null)
        {
          localObject = localInputSource.getPublicId();
          String str3 = localInputSource.getSystemId();
          String str4 = paramXMLResourceIdentifier.getBaseSystemId();
          InputStream localInputStream = localInputSource.getByteStream();
          Reader localReader = localInputSource.getCharacterStream();
          String str5 = localInputSource.getEncoding();
          XMLInputSource localXMLInputSource = new XMLInputSource((String)localObject, str3, str4);
          localXMLInputSource.setByteStream(localInputStream);
          localXMLInputSource.setCharacterStream(localReader);
          localXMLInputSource.setEncoding(str5);
          return localXMLInputSource;
        }
      }
      catch (SAXException localSAXException)
      {
        Object localObject = localSAXException.getException();
        if (localObject == null)
          localObject = localSAXException;
        throw new XNIException((Exception)localObject);
      }
    return (XMLInputSource)null;
  }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.xerces.util.EntityResolverWrapper
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X