public static boolean isClassfile ( final String path ) { final int len = path . length ( ) ; return len > 6 && path . regionMatches ( true , len - 6 , ".class" , 0 , 6 ) ; }
Check if the path ends with a . class extension ignoring case .