public class BasePlainTextFilter extends AbstractLineFilter
PlainTextFilter extracts lines of input text, separated by line terminators.| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_CONFIG |
static String |
FILTER_CONFIG_TRIM_ALL |
static String |
FILTER_CONFIG_TRIM_TRAIL |
static String |
FILTER_MIME |
static String |
FILTER_NAME |
input, LINE_NUMBER, srcLang, startDoc, trgLangSUB_FILTER| Constructor and Description |
|---|
BasePlainTextFilter() |
addLineBreak, cancel, close, component_idle, createFilterWriter, createSkeletonWriter, getActiveSkeleton, getFilterWriter, getFirstDocumentPart, getFirstTextUnit, getHeadSkeleton, getLineBreak, getQueueSize, getTargetLocale, hasNext, isMultilingual, next, notify, open, open, sendEvent, sendEvent, setFilterWriter, setMultilingualaddConfiguration, addConfiguration, addConfigurations, findConfiguration, getConfigurations, getDisplayName, getEncoderManager, getMimeType, removeConfiguration, setConfiguration, setDisplayName, setMimeTypegetParameters, getParameters, getParametersClassName, setParametersexec, getDescription, getName, setDescription, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getParameters, setParameters, streamforEachRemaining, removepublic static final String FILTER_NAME
public static final String FILTER_MIME
public static final String FILTER_CONFIG
public static final String FILTER_CONFIG_TRIM_TRAIL
public static final String FILTER_CONFIG_TRIM_ALL
protected void component_init()
component_init in class AbstractLineFilterpublic void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
IFiltersetFilterConfigurationMapper in interface IFiltersetFilterConfigurationMapper in class AbstractLineFilterfcMapper - the mapper to set.protected IFilterConfigurationMapper getFilterConfigurationMapper()
protected final TextProcessingResult sendAsSource(ITextUnit textUnit)
protected final TextProcessingResult sendAsSource(ITextUnit textUnit, boolean rejectEmpty)
protected final TextProcessingResult sendAsSource(TextContainer textContainer)
protected final TextProcessingResult sendAsTarget(ITextUnit target, ITextUnit source, LocaleId language)
protected final TextProcessingResult sendAsSkeleton(ITextUnit textUnit)
protected final TextProcessingResult sendAsSkeleton(GenericSkeleton skelPart)
protected final TextProcessingResult sendAsSkeleton(String skelPart)
protected boolean processTU(ITextUnit textUnit)
protected boolean checkTU(ITextUnit textUnit)
protected boolean isEmpty(ITextUnit textUnit)
protected TextProcessingResult component_exec(TextContainer lineContainer)
AbstractLineFiltercomponent_exec in class AbstractLineFilterprotected void component_done()
component_done in class OkapiComponentCopyright © 2021. All rights reserved.