/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { String fileName; File file; boolean enableDateParsing; CompressionMethod compressionMethod; FastXmlReader task; // Get the task arguments. fileName = getStringArgument( taskConfig, ARG_FILE_NAME, getDefaultStringArgument(taskConfig, DEFAULT_FILE_NAME) ); enableDateParsing = getBooleanArgument(taskConfig, ARG_ENABLE_DATE_PARSING, DEFAULT_ENABLE_DATE_PARSING); compressionMethod = getCompressionMethodArgument(taskConfig, fileName); // Create a file object from the file name provided. file = new File(fileName); // Build the task object. task = new FastXmlReader(file, enableDateParsing, compressionMethod); return new RunnableSourceManager(taskConfig.getId(), task, taskConfig.getPipeArgs()); } }
factoryMap.put("fast-read-xml", new FastXmlReaderFactory()); factoryMap.put("rx", new XmlReaderFactory()); factoryMap.put("read-xml-change", new XmlChangeReaderFactory()); factoryMap.put("fast-read-xml-0.6", new FastXmlReaderFactory()); factoryMap.put("read-xml-change-0.6", new XmlChangeReaderFactory()); factoryMap.put("write-xml-0.6", new XmlWriterFactory());
factoryMap.put("fast-read-xml", new FastXmlReaderFactory()); factoryMap.put("rx", new XmlReaderFactory()); factoryMap.put("read-xml-change", new XmlChangeReaderFactory()); factoryMap.put("fast-read-xml-0.6", new FastXmlReaderFactory()); factoryMap.put("read-xml-change-0.6", new XmlChangeReaderFactory()); factoryMap.put("write-xml-0.6", new XmlWriterFactory());
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { String fileName; File file; boolean enableDateParsing; CompressionMethod compressionMethod; FastXmlReader task; // Get the task arguments. fileName = getStringArgument( taskConfig, ARG_FILE_NAME, getDefaultStringArgument(taskConfig, DEFAULT_FILE_NAME) ); enableDateParsing = getBooleanArgument(taskConfig, ARG_ENABLE_DATE_PARSING, DEFAULT_ENABLE_DATE_PARSING); compressionMethod = getCompressionMethodArgument(taskConfig, fileName); // Create a file object from the file name provided. file = new File(fileName); // Build the task object. task = new FastXmlReader(file, enableDateParsing, compressionMethod); return new RunnableSourceManager(taskConfig.getId(), task, taskConfig.getPipeArgs()); } }