org.apache.lucene.analysis.payloads
Class IdentityEncoder
java.lang.Object
org.apache.lucene.analysis.payloads.AbstractEncoder
org.apache.lucene.analysis.payloads.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.
Method Summary |
Payload |
encode(char[] buffer,
int offset,
int length)
Convert a char array to a Payload |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
charset
protected Charset charset
charsetName
@Deprecated
protected String charsetName
- Deprecated. This field is no longer used. Use
charset
instead.
IdentityEncoder
public IdentityEncoder()
IdentityEncoder
public IdentityEncoder(Charset charset)
encode
public Payload encode(char[] buffer,
int offset,
int length)
- Description copied from interface:
PayloadEncoder
- Convert a char array to a
Payload
- Specified by:
encode
in interface PayloadEncoder
- Returns:
- encoded
Payload