|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.mime.HexCoDec
public class HexCoDec
A set of Hex encoding and decoding utility methods.
Constructor Summary | |
---|---|
HexCoDec()
|
Method Summary | |
---|---|
static byte[] |
decode(char[] hexChars)
Decode an array of hex chars |
static byte[] |
decode(char[] hexChars,
int startIndex,
int length)
Decode an array of hex chars. |
static byte[] |
decode(java.lang.String hexValue)
Decode a hex string |
static char[] |
encode(byte[] bites)
Hex encode an array of bytes |
static char[] |
encode(byte[] bites,
int startIndex,
int length)
Hex encode an array of bytes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HexCoDec()
Method Detail |
---|
public static byte[] decode(java.lang.String hexValue)
hexValue
- the string of hex characters
public static byte[] decode(char[] hexChars)
hexChars
- an array of hex characters.
public static byte[] decode(char[] hexChars, int startIndex, int length)
hexChars
- an array of hex characters.startIndex
- the index of the first character to decodelength
- the number of characters to decode.
public static char[] encode(byte[] bites)
bites
- the array of bytes to encode.
public static char[] encode(byte[] bites, int startIndex, int length)
bites
- the array of bytes to encode.startIndex
- the index of the first character to encode.length
- the number of characters to encode.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |