protected ImageDataProvider getDataProvider ( final String rset ) { if ( rset == null ) { return _defaultProvider ; } ImageDataProvider dprov = _providers . get ( rset ) ; if ( dprov == null ) { dprov = new ImageDataProvider ( ) { public BufferedImage loadImage ( String path ) throws IOException { // first attempt to load the image from the specified resource set try { return _rmgr . getImageResource ( rset , path ) ; } catch ( FileNotFoundException fnfe ) { // fall back to trying the classpath return _rmgr . getImageResource ( path ) ; } } public String getIdent ( ) { return "rmgr:" + rset ; } } ; _providers . put ( rset , dprov ) ; } return dprov ; }
Returns the data provider configured to obtain image data from the specified resource set .