org.openstreetmap.osmosis.core.xml.common
Class XmlTaskManagerFactory

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
      extended by org.openstreetmap.osmosis.core.xml.common.XmlTaskManagerFactory
Direct Known Subclasses:
FastXmlReaderFactory, XmlChangeReaderFactory, XmlChangeReaderFactory, XmlChangeWriterFactory, XmlChangeWriterFactory, XmlReaderFactory, XmlReaderFactory, XmlWriterFactory, XmlWriterFactory

public abstract class XmlTaskManagerFactory
extends TaskManagerFactory

Extends the basic task manager factory functionality with xml task specific common methods.

Author:
Brett Henderson

Constructor Summary
XmlTaskManagerFactory()
           
 
Method Summary
protected  CompressionMethod getCompressionMethodArgument(TaskConfiguration taskConfig, java.lang.String fileName)
          Utility method for retrieving a CompressionMethod argument value from a Map of task arguments.
protected  boolean getProdEncodingHackArgument(TaskConfiguration taskConfig)
          Utility method for retrieving the argument specifying whether to enable the production file encoding hack to work around a bug in the current production configuration.
 
Methods inherited from class org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
createTaskManager, createTaskManagerImpl, doesArgumentExist, getBooleanArgument, getDateArgument, getDateArgument, getDefaultIntegerArgument, getDefaultStringArgument, getDoubleArgument, getIntegerArgument, getIntegerArgument, getStringArgument, getStringArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTaskManagerFactory

public XmlTaskManagerFactory()
Method Detail

getCompressionMethodArgument

protected CompressionMethod getCompressionMethodArgument(TaskConfiguration taskConfig,
                                                         java.lang.String fileName)
Utility method for retrieving a CompressionMethod argument value from a Map of task arguments.

Parameters:
taskConfig - Contains all information required to instantiate and configure the task.
fileName - The file name used to determine the default compression method.
Returns:
The value of the argument.

getProdEncodingHackArgument

protected boolean getProdEncodingHackArgument(TaskConfiguration taskConfig)
Utility method for retrieving the argument specifying whether to enable the production file encoding hack to work around a bug in the current production configuration.

Parameters:
taskConfig - Contains all information required to instantiate and configure the task.
Returns:
The value of the argument.