org.apache.tools.ant.taskdefs.optional.native2ascii

Class Native2AsciiAdapterFactory

public class Native2AsciiAdapterFactory extends Object

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

Since: Ant 1.6.3

Method Summary
static Native2AsciiAdaptergetAdapter(String choice, ProjectComponent log)
Creates the Native2AsciiAdapter based on the user choice and * potentially the VM vendor.
static StringgetDefault()
Determines the default choice of adapter based on the VM vendor.

Method Detail

getAdapter

public static Native2AsciiAdapter getAdapter(String choice, ProjectComponent log)
Creates the Native2AsciiAdapter based on the user choice and * potentially the VM vendor.

Parameters: choice the user choice (if any). log a ProjectComponent instance used to access Ant's logging system.

Returns: The adapter to use.

Throws: BuildException if there was a problem.

getDefault

public static String getDefault()
Determines the default choice of adapter based on the VM vendor.

Returns: the default choice of adapter based on the VM vendor