If I want to search a class name starts with a certain string, the only option I have now is to enumerate all the entries in the jar file and match myself. It is not efficient doing that. It would be very helpful if we could provide a way to scan the jar file for classes I don't know exact name but having a pattern.
See bug 4908648's evaluation for more details. Actually when the user calls Locale.getAvailableLocales to get all the supported locales in JRE, the Locale code will scan all the jar files in class path to look for class starts with sun.text.resource.LocaleElements_* and get "*" to see what the locale of that resource file associated with. In this case, we don't know exact name of the class, but we know the entry name for those classes starts with a certain pattern.
###@###.### 2005-04-21 20:59:15 GMT