src/main/java/org/jboss/util/xml/CatalogLocation.java
/**
    * 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


Tries to resolve the entity using the thread specific catolog resolvers
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
      {
         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 { this . isLastEntityResolved = false ; return null ; } }
Tries to resolve the entity using the thread specific catolog resolvers
Tries to resolve the entity using the thread specific catolog resolvers
//resource could�t be resloved