private static boolean isValidJavaClassFile ( String file ) { if ( ! file . endsWith ( ".class" ) ) return false ; String clazzName = file . substring ( 0 , file . length ( ) - ".class" . length ( ) ) ; return isValidClassName ( clazzName ) ; }
Return true if given file name is a valid class file name .