Package org.grails.encoder.impl
Class HTML4Codec
- java.lang.Object
-
- org.grails.encoder.impl.HTML4Codec
-
- All Implemented Interfaces:
CodecFactory
public class HTML4Codec extends java.lang.Object implements CodecFactory
Encodes and decodes strings to and from HTML. It uses escaping information from Spring's HtmlUtils so that this is compatible with the previous "encodeAsHTML" in older Grails versions.- Since:
- 2.3
-
-
Constructor Summary
Constructors Constructor Description HTML4Codec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecodergetDecoder()Gets the decoder instance.EncodergetEncoder()Gets the encoder instance.
-
-
-
Method Detail
-
getEncoder
public Encoder getEncoder()
Description copied from interface:CodecFactoryGets the encoder instance.- Specified by:
getEncoderin interfaceCodecFactory- Returns:
- the encoder
-
getDecoder
public Decoder getDecoder()
Description copied from interface:CodecFactoryGets the decoder instance.- Specified by:
getDecoderin interfaceCodecFactory- Returns:
- the decoder
-
-