Class IdentityEncoder

  • All Implemented Interfaces:
    PayloadEncoder

    public class IdentityEncoder
    extends AbstractEncoder
    implements PayloadEncoder
    Does nothing other than convert the char array to a byte array using the specified encoding.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.charset.Charset charset  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BytesRef encode​(char[] buffer, int offset, int length)
      Convert a char array to a BytesRef
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • charset

        protected java.nio.charset.Charset charset
    • Constructor Detail

      • IdentityEncoder

        public IdentityEncoder()
      • IdentityEncoder

        public IdentityEncoder​(java.nio.charset.Charset charset)