private static String __getExtension ( String path ) { for ( int i = path . length ( ) - 1 ; i >= 0 ; i -- ) { if ( path . charAt ( i ) == ' ' ) { return path . substring ( i + 1 ) ; } } return "" ; }
Returns the file extension acording to given path .