Class CDATAEncoder

    • Constructor Detail

      • CDATAEncoder

        public CDATAEncoder​(String encoding,
                            String lineBreak)
      • CDATAEncoder

        public CDATAEncoder()
    • Method Detail

      • encode

        public String encode​(String text,
                             EncoderContext context)
        Description copied from interface: IEncoder
        Encodes a given text with this encoder.
        Specified by:
        encode in interface IEncoder
        Overrides:
        encode in class DefaultEncoder
        Parameters:
        text - the text to encode.
        context - the context of the text: 0=text, 1=skeleton, 2=inline.
        Returns:
        the encoded text.