public final class IndexableBinaryStringTools
extends java.lang.Object
ByteBuffer.slice()
.Modifier and Type | Method and Description |
---|---|
static void |
decode(char[] inputArray,
int inputOffset,
int inputLength,
byte[] outputArray,
int outputOffset,
int outputLength)
Decodes the input char sequence into the output byte sequence.
|
static java.nio.ByteBuffer |
decode(java.nio.CharBuffer input)
Deprecated.
Use
decode(char[], int, int, byte[], int, int)
instead. This method will be removed in Lucene 4.0 |
static void |
decode(java.nio.CharBuffer input,
java.nio.ByteBuffer output)
Deprecated.
Use
decode(char[], int, int, byte[], int, int)
instead. This method will be removed in Lucene 4.0 |
static void |
encode(byte[] inputArray,
int inputOffset,
int inputLength,
char[] outputArray,
int outputOffset,
int outputLength)
Encodes the input byte sequence into the output char sequence.
|
static java.nio.CharBuffer |
encode(java.nio.ByteBuffer input)
Deprecated.
Use
encode(byte[], int, int, char[], int, int)
instead. This method will be removed in Lucene 4.0 |
static void |
encode(java.nio.ByteBuffer input,
java.nio.CharBuffer output)
Deprecated.
Use
encode(byte[], int, int, char[], int, int)
instead. This method will be removed in Lucene 4.0 |
static int |
getDecodedLength(char[] encoded,
int offset,
int length)
Returns the number of bytes required to decode the given char sequence.
|
static int |
getDecodedLength(java.nio.CharBuffer encoded)
Deprecated.
Use
getDecodedLength(char[], int, int) instead. This
method will be removed in Lucene 4.0 |
static int |
getEncodedLength(byte[] inputArray,
int inputOffset,
int inputLength)
Returns the number of chars required to encode the given bytes.
|
static int |
getEncodedLength(java.nio.ByteBuffer original)
Deprecated.
Use
getEncodedLength(byte[], int, int) instead. This
method will be removed in Lucene 4.0 |
@Deprecated public static int getEncodedLength(java.nio.ByteBuffer original) throws java.lang.IllegalArgumentException
getEncodedLength(byte[], int, int)
instead. This
method will be removed in Lucene 4.0original
- The byte sequence to be encoded. Must be backed by an
array.java.lang.IllegalArgumentException
- If the given ByteBuffer is not backed by
an arraypublic static int getEncodedLength(byte[] inputArray, int inputOffset, int inputLength)
inputArray
- byte sequence to be encodedinputOffset
- initial offset into inputArrayinputLength
- number of bytes in inputArray@Deprecated public static int getDecodedLength(java.nio.CharBuffer encoded) throws java.lang.IllegalArgumentException
getDecodedLength(char[], int, int)
instead. This
method will be removed in Lucene 4.0encoded
- The char sequence to be decoded. Must be backed by an array.java.lang.IllegalArgumentException
- If the given CharBuffer is not backed by
an arraypublic static int getDecodedLength(char[] encoded, int offset, int length)
encoded
- char sequence to be decodedoffset
- initial offsetlength
- number of characters@Deprecated public static void encode(java.nio.ByteBuffer input, java.nio.CharBuffer output)
encode(byte[], int, int, char[], int, int)
instead. This method will be removed in Lucene 4.0getEncodedLength(java.nio.ByteBuffer)
.input
- The byte sequence to encodeoutput
- Where the char sequence encoding result will go. The limit is
set to one past the position of the final char.java.lang.IllegalArgumentException
- If either the input or the output buffer
is not backed by an arraypublic static void encode(byte[] inputArray, int inputOffset, int inputLength, char[] outputArray, int outputOffset, int outputLength)
getEncodedLength(byte[], int, int)
.inputArray
- byte sequence to be encodedinputOffset
- initial offset into inputArrayinputLength
- number of bytes in inputArrayoutputArray
- char sequence to store encoded resultoutputOffset
- initial offset into outputArrayoutputLength
- length of output, must be getEncodedLength@Deprecated public static void decode(java.nio.CharBuffer input, java.nio.ByteBuffer output)
decode(char[], int, int, byte[], int, int)
instead. This method will be removed in Lucene 4.0getDecodedLength(java.nio.CharBuffer)
.input
- The char sequence to decodeoutput
- Where the byte sequence decoding result will go. The limit is
set to one past the position of the final char.java.lang.IllegalArgumentException
- If either the input or the output buffer
is not backed by an arraypublic static void decode(char[] inputArray, int inputOffset, int inputLength, byte[] outputArray, int outputOffset, int outputLength)
getDecodedLength(char[], int, int)
.inputArray
- char sequence to be decodedinputOffset
- initial offset into inputArrayinputLength
- number of chars in inputArrayoutputArray
- byte sequence to store encoded resultoutputOffset
- initial offset into outputArrayoutputLength
- length of output, must be
getDecodedLength(inputArray, inputOffset, inputLength)@Deprecated public static java.nio.ByteBuffer decode(java.nio.CharBuffer input)
decode(char[], int, int, byte[], int, int)
instead. This method will be removed in Lucene 4.0encode(java.nio.ByteBuffer)
or
encode(java.nio.ByteBuffer, java.nio.CharBuffer)
.input
- The char sequence to decodejava.lang.IllegalArgumentException
- If the input buffer is not backed by an
array@Deprecated public static java.nio.CharBuffer encode(java.nio.ByteBuffer input)
encode(byte[], int, int, char[], int, int)
instead. This method will be removed in Lucene 4.0input
- The byte sequence to encodejava.lang.IllegalArgumentException
- If the input buffer is not backed by an
arrayCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.