Top Description Constructors Methods
org.apache.tools.ant.taskdefs.optional.native2ascii

public Class Native2AsciiAdapterFactory

extends Object
Class Inheritance
Imports
org.apache.tools.ant.BuildException, .ProjectComponent, org.apache.tools.ant.types.Path, org.apache.tools.ant.util.ClasspathUtils, .JavaEnvUtils

Creates the Native2AsciiAdapter based on the user choice and potentially the VM vendor.
Since
Ant 1.6.3

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Native2AsciiAdapter

Returns:

The adapter to use.
getAdapter
(String
the user choice (if any).
choice
,
ProjectComponent
a ProjectComponent instance used to access Ant's logging system.
log
)

Creates the Native2AsciiAdapter based on the user choice and potentially the VM vendor.

public static Native2AsciiAdapter

Returns:

The adapter to use.
getAdapter
(String
the user choice (if any).
choice
,
ProjectComponent
a ProjectComponent instance used to access Ant's logging system.
log
,
Path
the classpath to use when looking up an adapter class
classpath
)

Creates the Native2AsciiAdapter based on the user choice and potentially the VM vendor.

public static String

Returns:

the default choice of adapter based on the VM vendor
getDefault
()

Determines the default choice of adapter based on the VM vendor.

private static Native2AsciiAdapter
resolveClassName(String
The fully qualified classname to be created.
className
,
ClassLoader
the classloader to use
loader
)

Tries to resolve the given classname into a native2ascii adapter.

private static final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Native2AsciiAdapterFactoryback to summary
public Native2AsciiAdapterFactory()

Method Detail

getAdapterback to summary
public static Native2AsciiAdapter getAdapter(String choice, ProjectComponent log) throws BuildException

Creates the Native2AsciiAdapter based on the user choice and potentially the VM vendor.

Parameters
choice:String

the user choice (if any).

log:ProjectComponent

a ProjectComponent instance used to access Ant's logging system.

Returns:Native2AsciiAdapter

The adapter to use.

Exceptions
BuildException:
if there was a problem.
getAdapterback to summary
public static Native2AsciiAdapter getAdapter(String choice, ProjectComponent log, Path classpath) throws BuildException

Creates the Native2AsciiAdapter based on the user choice and potentially the VM vendor.

Parameters
choice:String

the user choice (if any).

log:ProjectComponent

a ProjectComponent instance used to access Ant's logging system.

classpath:Path

the classpath to use when looking up an adapter class

Returns:Native2AsciiAdapter

The adapter to use.

Exceptions
BuildException:
if there was a problem.
Since
Ant 1.8.0
getDefaultback to summary
public static String getDefault()

Determines the default choice of adapter based on the VM vendor.

Returns:String

the default choice of adapter based on the VM vendor

resolveClassNameback to summary
private static Native2AsciiAdapter resolveClassName(String className, ClassLoader loader) throws BuildException

Tries to resolve the given classname into a native2ascii adapter. Throws a fit if it can't.

Parameters
className:String

The fully qualified classname to be created.

loader:ClassLoader

the classloader to use

Exceptions
BuildException:
This is the fit that is thrown if className isn't an instance of Native2AsciiAdapter.
shouldUseKaffeback to summary
private static final boolean shouldUseKaffe()