Interface CodecFactory

  • All Known Implementing Classes:
    HTML4Codec, HTMLJSCodec, RawCodec, XMLCodecFactory

    public interface CodecFactory
    This interface can be used to tell that a Grails Codec class should use these methods for creating the encoder and decoder instances instead of using conventional encode/decode methods.
    Since:
    2.3
    • Method Detail

      • getEncoder

        Encoder getEncoder()
        Gets the encoder instance.
        Returns:
        the encoder
      • getDecoder

        Decoder getDecoder()
        Gets the decoder instance.
        Returns:
        the decoder