Class Native2AsciiAdapterFactory
java.lang.Object
org.apache.tools.ant.taskdefs.optional.native2ascii.Native2AsciiAdapterFactory
Creates the Native2AsciiAdapter based on the user choice and
 potentially the VM vendor.
- Since:
- Ant 1.6.3
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Native2AsciiAdaptergetAdapter(String choice, ProjectComponent log) Creates the Native2AsciiAdapter based on the user choice and potentially the VM vendor.static Native2AsciiAdaptergetAdapter(String choice, ProjectComponent log, Path classpath) Creates the Native2AsciiAdapter based on the user choice and potentially the VM vendor.static StringDetermines the default choice of adapter based on the VM vendor.
- 
Constructor Details- 
Native2AsciiAdapterFactorypublic Native2AsciiAdapterFactory()
 
- 
- 
Method Details- 
getDefaultDetermines the default choice of adapter based on the VM vendor.- Returns:
- the default choice of adapter based on the VM vendor
 
- 
getAdapterpublic static Native2AsciiAdapter getAdapter(String choice, ProjectComponent log) throws BuildException 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.
 
- 
getAdapterpublic 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- the user choice (if any).
- log- a ProjectComponent instance used to access Ant's logging system.
- classpath- the classpath to use when looking up an adapter class
- Returns:
- The adapter to use.
- Throws:
- BuildException- if there was a problem.
- Since:
- Ant 1.8.0
 
 
-