public static String stripExt ( final String aFileName ) { final int index = aFileName . lastIndexOf ( DOT ) ; if ( index != - 1 ) { return aFileName . substring ( 0 , index ) ; } return aFileName ; }
Return a file name without the dot extension .