public String getBaseName ( ) { String n = getName ( ) ; int idx = n . lastIndexOf ( ' ' ) ; if ( idx < 0 ) return n ; return n . substring ( 0 , idx ) ; }
Gets the file name portion except the extension .