src/main/java/org/jboss/util/xml/CatalogLocation.java
/**
    * 
    * Loads the resolved resource.
    * 
    * @param resolvedURI - the full qualified URI of the resoved local ressource
    * @return - the inputstram represnting this resource
    * @throws IOException - if the resource cannot be opened
    */
Loads the resolved resource.

@param resolvedURI - the full qualified URI of the resoved local ressource
@return - the inputstram represnting this resource
@throws IOException - if the resource cannot be opened
Loads the resolved resource . @param resolvedURI - the full qualified URI of the resoved local ressource @return - the inputstram represnting this resource @throws IOException - if the resource cannot be opened
private InputStream loadResource(String resolvedURI) throws IOException
   {
      try
      {
         final URI toLoad = new URI(resolvedURI);
         InputStream inputStream = null;
         if (toLoad != null)
         {
            try
            {
               inputStream = new FileInputStream(new File(toLoad));
            }
            catch (IOException e)
            {
               log.error("Failed to open url stream", e);
               throw e;
            }
         }
         return inputStream;
      }
      catch (URISyntaxException e)
      {
         log.error("The URI (" + resolvedURI + ") is malfomed");
         throw new IOException("The URI (" + resolvedURI + ") is malfomed");
      }
   }
private InputStream loadResource ( String resolvedURI ) throws IOException { try { final URI toLoad = new URI ( resolvedURI ) ; InputStream inputStream = null ; if ( toLoad != null ) { try { inputStream = new FileInputStream ( new File ( toLoad ) ) ; } catch ( IOException e ) { log . error ( "Failed to open url stream" , e ) ; throw e ; } } return inputStream ; } catch ( URISyntaxException e ) { log . error ( "The URI (" + resolvedURI + ") is malfomed" ) ; throw new IOException ( "The URI (" + resolvedURI + ") is malfomed" ) ; } }
Loads the resolved resource.
Loads the resolved resource .