Class IdentityEncoder
Does nothing other than convert the char array to a byte array using the specified encoding.
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Payloads
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class IdentityEncoder : AbstractEncoder, IPayloadEncoder
Constructors
IdentityEncoder()
Does nothing other than convert the char array to a byte array using the specified encoding.
Declaration
public IdentityEncoder()
IdentityEncoder(Encoding)
Does nothing other than convert the char array to a byte array using the specified encoding.
Declaration
public IdentityEncoder(Encoding charset)
Parameters
| Type | Name | Description |
|---|---|---|
| Encoding | charset |
Fields
m_charset
Does nothing other than convert the char array to a byte array using the specified encoding.
Declaration
protected Encoding m_charset
Field Value
| Type | Description |
|---|---|
| Encoding |
Methods
Encode(char[], int, int)
Convert a char array to a Lucene.Net.Util.BytesRef
Declaration
public override BytesRef Encode(char[] buffer, int offset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | buffer | |
| int | offset | |
| int | length |
Returns
| Type | Description |
|---|---|
| BytesRef | encoded Lucene.Net.Util.BytesRef |