Package net.sf.okapi.common.encoder
Class TSEncoder
- java.lang.Object
-
- net.sf.okapi.common.encoder.XMLEncoder
-
- net.sf.okapi.common.encoder.TSEncoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.okapi.common.encoder.XMLEncoder
XMLEncoder.Parameters
-
-
Field Summary
-
Fields inherited from class net.sf.okapi.common.encoder.XMLEncoder
ESCAPEGT, ESCAPELINEBREAK, ESCAPENBSP, QUOTEMODE, QUOTEMODEDEFINED
-
-
Constructor Summary
Constructors Constructor Description TSEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode(String text, EncoderContext context)Encodes a given text with this encoder.StringtoNative(String propertyName, String value)Converts any property values from its standard representation to the native representation for this encoder.-
Methods inherited from class net.sf.okapi.common.encoder.XMLEncoder
encode, encode, getCharsetEncoder, getEncoding, getLineBreak, getParameters, reset, setOptions
-
-
-
-
Method Detail
-
encode
public String encode(String text, EncoderContext context)
Description copied from interface:IEncoderEncodes a given text with this encoder.- Specified by:
encodein interfaceIEncoder- Overrides:
encodein classXMLEncoder- Parameters:
text- the text to encode.context- the context of the text: 0=text, 1=skeleton, 2=inline.- Returns:
- the encoded text.
-
toNative
public String toNative(String propertyName, String value)
Description copied from interface:IEncoderConverts any property values from its standard representation to the native representation for this encoder.- Specified by:
toNativein interfaceIEncoder- Overrides:
toNativein classXMLEncoder- Parameters:
propertyName- the name of the property.value- the standard value to convert.- Returns:
- the native representation of the given value.
-
-