public class IdentityEncoder extends AbstractEncoder implements PayloadEncoder
Modifier and Type | Field and Description |
---|---|
protected java.nio.charset.Charset |
charset |
Constructor and Description |
---|
IdentityEncoder() |
IdentityEncoder(java.nio.charset.Charset charset) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
encode(char[] buffer,
int offset,
int length)
Convert a char array to a
BytesRef |
encode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
public IdentityEncoder()
public IdentityEncoder(java.nio.charset.Charset charset)
public BytesRef encode(char[] buffer, int offset, int length)
PayloadEncoder
BytesRef
encode
in interface PayloadEncoder
BytesRef