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 |
encodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodepublic IdentityEncoder()
public IdentityEncoder(java.nio.charset.Charset charset)
public BytesRef encode(char[] buffer, int offset, int length)
PayloadEncoderBytesRefencode in interface PayloadEncoderBytesRefCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.