Class MSBatchTranslationStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.msbatchtranslation.MSBatchTranslationStep
-
- All Implemented Interfaces:
AutoCloseable,Function<Stream<Event>,Stream<Event>>,IPipelineStep
public class MSBatchTranslationStep extends BasePipelineStep
-
-
Constructor Summary
Constructors Constructor Description MSBatchTranslationStep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventgenerateAltOutput(String outFilePath, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale, String filterConfigId)Generates the alternative output used by several Trados StepsStringgetDescription()StringgetName()ParametersgetParameters()EventhandleEvent(Event event)protected EventhandleStartBatch(Event event)voidsetBatchInputCount(int batchInputCount)voidsetInputRootDirectory(String inputRootDir)voidsetParameters(IParameters params)voidsetRootDirectory(String rootDir)voidsetSourceLocale(LocaleId sourceLocale)voidsetTargetLocale(LocaleId targetLocale)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, handleTextUnit, isDone, isLastOutputStep, setLastOutputStep
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.pipeline.IPipelineStep
apply, close, handleStream
-
-
-
-
Field Detail
-
DOMAINVAR
public static final String DOMAINVAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public String getDescription()
-
getName
public String getName()
-
setSourceLocale
public void setSourceLocale(LocaleId sourceLocale)
- Specified by:
setSourceLocalein interfaceIPipelineStep- Overrides:
setSourceLocalein classBasePipelineStep
-
setTargetLocale
public void setTargetLocale(LocaleId targetLocale)
- Specified by:
setTargetLocalein interfaceIPipelineStep- Overrides:
setTargetLocalein classBasePipelineStep
-
setRootDirectory
public void setRootDirectory(String rootDir)
-
setInputRootDirectory
public void setInputRootDirectory(String inputRootDir)
-
setBatchInputCount
public void setBatchInputCount(int batchInputCount)
-
getParameters
public Parameters getParameters()
- Specified by:
getParametersin interfaceIPipelineStep- Overrides:
getParametersin classBasePipelineStep
-
setParameters
public void setParameters(IParameters params)
- Specified by:
setParametersin interfaceIPipelineStep- Overrides:
setParametersin classBasePipelineStep
-
handleStartBatch
protected Event handleStartBatch(Event event)
- Overrides:
handleStartBatchin classBasePipelineStep
-
handleEvent
public Event handleEvent(Event event)
- Specified by:
handleEventin interfaceIPipelineStep- Overrides:
handleEventin classBasePipelineStep
-
generateAltOutput
public static Event generateAltOutput(String outFilePath, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale, String filterConfigId)
Generates the alternative output used by several Trados Steps- Parameters:
outFilePath- path of the new input file.defaultEncoding- default encoding of the new file.sourceLocale- source locale.targetLocale- target locale.filterConfigId- filter configuration id of the new file.- Returns:
- the event created.
-
-