Methods Summary |
---|
public static Native2AsciiAdapter | getAdapter(java.lang.String choice, org.apache.tools.ant.ProjectComponent log)Creates the Native2AsciiAdapter based on the user choice and *
potentially the VM vendor.
if ((JavaEnvUtils.isKaffe() && choice == null)
|| KaffeNative2Ascii.IMPLEMENTATION_NAME.equals(choice)) {
return new KaffeNative2Ascii();
} else if (SunNative2Ascii.IMPLEMENTATION_NAME.equals(choice)) {
return new SunNative2Ascii();
} else if (choice != null) {
return resolveClassName(choice);
}
// This default has been good enough until Ant 1.6.3, so stick
// with it
return new SunNative2Ascii();
|
public static java.lang.String | getDefault()Determines the default choice of adapter based on the VM
vendor.
if (JavaEnvUtils.isKaffe()) {
return KaffeNative2Ascii.IMPLEMENTATION_NAME;
}
return SunNative2Ascii.IMPLEMENTATION_NAME;
|
private static Native2AsciiAdapter | resolveClassName(java.lang.String className)Tries to resolve the given classname into a native2ascii adapter.
Throws a fit if it can't.
return (Native2AsciiAdapter) ClasspathUtils.newInstance(className,
Native2AsciiAdapterFactory.class.getClassLoader(),
Native2AsciiAdapter.class);
|