src/main/java/org/jboss/util/xml/CatalogLocation.java
public InputSource resolveEntity(String publicId, String systemId) throws MalformedURLException, IOException
   {
      String resolvedURI = catologResolver.resolveSystem(systemId);

      if (resolvedURI == null)
      {
         resolvedURI = catologResolver.resolvePublic(publicId, systemId);
      }

      if (resolvedURI != null)
      {
         final InputSource is = new InputSource();
         is.setPublicId(publicId);
         is.setSystemId(systemId);
         is.setByteStream(this.loadResource(resolvedURI));
         this.isLastEntityResolved = true;
         return is;
      }
      else
      {
         //resource could�t be resloved
         this.isLastEntityResolved = false;
         return null;
      }
   }
public InputSource resolveEntity(String publicId, String systemId) throws MalformedURLException, IOException
   {
      String resolvedURI = catologResolver.resolveSystem(systemId);

      if (resolvedURI == null)
      {
         resolvedURI = catologResolver.resolvePublic(publicId, systemId);
      }

      if (resolvedURI != null)
      {
         final InputSource is = new InputSource();
         is.setPublicId(publicId);
         is.setSystemId(systemId);
         is.setByteStream(this.loadResource(resolvedURI));
         this.isLastEntityResolved = true;
         return is;
      }
      else
      {
         //resource could�t be resloved
         this.isLastEntityResolved = false;
         return null;
      }
   }
public InputSource resolveEntity ( String publicId , String systemId ) throws MalformedURLException , IOException { String resolvedURI = catologResolver . resolveSystem ( systemId ) ; if ( resolvedURI == null ) { resolvedURI = catologResolver . resolvePublic ( publicId , systemId ) ; } if ( resolvedURI != null ) { final InputSource is = new InputSource ( ) ; is . setPublicId ( publicId ) ; is . setSystemId ( systemId ) ; is . setByteStream ( this . loadResource ( resolvedURI ) ) ; this . isLastEntityResolved = true ; return is ; } else { //resource could�t be resloved this . isLastEntityResolved = false ; return null ; } }
Tries to resolve the entity using the thread specific catolog resolvers

@param publicId - Public ID of DTD, or null if it is a schema
@param systemId - the system ID of DTD or Schema
@return InputSource of entity
@throws MalformedURLException - if the url is wrong
@throws IOException - error reading the local file
Tries to resolve the entity using the thread specific catolog resolvers