Package net.sf.okapi.filters.tex
Class TEXSkeletonWriter
- java.lang.Object
-
- net.sf.okapi.common.skeleton.GenericSkeletonWriter
-
- net.sf.okapi.filters.tex.TEXSkeletonWriter
-
- All Implemented Interfaces:
ISkeletonWriter
public class TEXSkeletonWriter extends GenericSkeletonWriter implements ISkeletonWriter
-
-
Field Summary
-
Fields inherited from class net.sf.okapi.common.skeleton.GenericSkeletonWriter
allowEmptyOutputTarget, ALLOWEMPTYOUTPUTTARGET, encoderManager, inputLoc, isMultilingual, layer, outputEncoding, outputLoc, storageStack
-
-
Constructor Summary
Constructors Constructor Description TEXSkeletonWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)Gets the original content of a given text unit.-
Methods inherited from class net.sf.okapi.common.skeleton.GenericSkeletonWriter
_processEndGroup, _processStartGroup, addToReferents, close, expandCodeContent, getContent, getEncoderManager, getInputLoc, getLayer, getOutputEncoding, getOutputLoc, getPropertyValue, getReference, getReferentCopies, getReferents, getSfWriter, getString, getString, getString, getString, getString, isAllowEmptyOutputTarget, isCodeThatDisablesEncoding, isMultilingual, processDocumentPart, processEndDocument, processEndGroup, processEndSubDocument, processEndSubfilter, processStartDocument, processStartGroup, processStartSubDocument, processStartSubfilter, processTextUnit, setAllowEmptyOutputTarget, setEncoderManager, setLayer, setMultilingual, setOutputEncoding, setOutputLoc, setReferentCopies, setReferents
-
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.skeleton.ISkeletonWriter
close, processDocumentPart, processEndDocument, processEndGroup, processEndSubDocument, processEndSubfilter, processStartDocument, processStartGroup, processStartSubDocument, processStartSubfilter, processTextUnit
-
-
-
-
Method Detail
-
getContent
protected String getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)
Gets the original content of a given text unit.- Overrides:
getContentin classGenericSkeletonWriter- Parameters:
tu- The text unit to process.locToUse- locale to output. Use null for the source, or the locale for the target locales.context- Context flag: 0=text, 1=skeleton, 2=inline.- Returns:
- The string representation of the text unit content.
-
-