public InputSource resolveLocalEntity ( String systemID ) throws SAXException , IOException { String localFileName = systemID ; int fileNameStart = localFileName . lastIndexOf ( ' ' ) + 1 ; if ( fileNameStart < localFileName . length ( ) ) { localFileName = systemID . substring ( fileNameStart ) ; } ClassLoader cl = LocalFileEntityResolver . class . getClassLoader ( ) ; InputStream stream = cl . getResourceAsStream ( RESORUCE_PATH_PREFIX + localFileName ) ; if ( stream != null ) { return new InputSource ( stream ) ; } return null ; }
Resolve the given entity locally .