|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.common.Hex
public class Hex
| Constructor Summary | |
|---|---|
Hex()
|
|
| Method Summary | |
|---|---|
static byte[] |
decodeHex(char[] data)
|
static byte[] |
decodeHex(java.lang.String data)
|
static char[] |
encodeHex(byte[] data)
Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order. |
static char[] |
encodeHex(byte[] data,
boolean toLowerCase)
Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order. |
protected static char[] |
encodeHex(byte[] data,
char[] toDigits)
Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order. |
static java.lang.String |
encodeHexString(byte[] data)
Converts an array of bytes into a String representing the hexadecimal values of each byte in order. |
protected static int |
toDigit(char ch,
int index)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hex()
| Method Detail |
|---|
public static char[] encodeHex(byte[] data)
data - a byte[] to convert to Hex characters
public static char[] encodeHex(byte[] data,
boolean toLowerCase)
data - a byte[] to convert to Hex characterstoLowerCase - true converts to lowercase, false to uppercase
protected static char[] encodeHex(byte[] data,
char[] toDigits)
data - a byte[] to convert to Hex characterstoDigits - the output alphabet
public static java.lang.String encodeHexString(byte[] data)
data - a byte[] to convert to Hex characters
public static byte[] decodeHex(java.lang.String data)
throws ElasticSearchIllegalStateException
ElasticSearchIllegalStateException
public static byte[] decodeHex(char[] data)
throws ElasticSearchIllegalStateException
ElasticSearchIllegalStateException
protected static int toDigit(char ch,
int index)
throws ElasticSearchIllegalStateException
ElasticSearchIllegalStateException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||