protected InputStream getResourceInputStream ( final Resource resource , final String entityId ) throws IOException { LOGGER . debug ( "Locating metadata resource from input stream." ) ; if ( ! resource . exists ( ) || ! resource . isReadable ( ) ) { throw new FileNotFoundException ( "Resource does not exist or is unreadable" ) ; } return resource . getInputStream ( ) ; }
Retrieve the remote source s input stream to parse data .