Package net.sf.okapi.common.encoder
Class CDATAEncoder
- java.lang.Object
-
- net.sf.okapi.common.encoder.DefaultEncoder
-
- net.sf.okapi.common.encoder.CDATAEncoder
-
public class CDATAEncoder extends DefaultEncoder
-
-
Constructor Summary
Constructors Constructor Description CDATAEncoder()CDATAEncoder(String encoding, String lineBreak)
-
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.-
Methods inherited from class net.sf.okapi.common.encoder.DefaultEncoder
encode, encode, getCharsetEncoder, getEncoding, getLineBreak, getParameters, reset, setLineBreak, setOptions, toNative
-
-
-
-
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 classDefaultEncoder- Parameters:
text- the text to encode.context- the context of the text: 0=text, 1=skeleton, 2=inline.- Returns:
- the encoded text.
-
-