private String getFileName ( String fileName ) { if ( fileName != null ) { int index = fileName . indexOf ( ' ' ) ; if ( index < 0 ) { return fileName ; } else { fileName = fileName . substring ( index + 1 ) ; index = fileName . lastIndexOf ( ' ' ) ; if ( index < 0 ) { return fileName ; } else { return fileName . substring ( index + 1 ) ; } } } return null ; }
get file name from resource