public class HexadecimalEncodingAlgorithm extends BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener| Modifier and Type | Field and Description |
|---|---|
private static int[] |
HEXADECIMAL_TO_NIBBLE_TABLE |
private static char[] |
NIBBLE_TO_HEXADECIMAL_TABLE |
SPACE_PATTERN| Constructor and Description |
|---|
HexadecimalEncodingAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertFromCharacters(char[] ch,
int start,
int length) |
void |
convertToCharacters(java.lang.Object data,
java.lang.StringBuffer s) |
java.lang.Object |
decodeFromBytes(byte[] b,
int start,
int length) |
java.lang.Object |
decodeFromInputStream(java.io.InputStream s) |
void |
encodeToBytes(java.lang.Object array,
int astart,
int alength,
byte[] b,
int start) |
void |
encodeToOutputStream(java.lang.Object data,
java.io.OutputStream s) |
int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
int |
getPrimtiveLengthFromOctetLength(int octetLength) |
matchWhiteSpaceDelimnatedWords, removeWhitespaceprivate static final char[] NIBBLE_TO_HEXADECIMAL_TABLE
private static final int[] HEXADECIMAL_TO_NIBBLE_TABLE
public final java.lang.Object decodeFromBytes(byte[] b,
int start,
int length)
throws EncodingAlgorithmException
EncodingAlgorithmExceptionpublic final java.lang.Object decodeFromInputStream(java.io.InputStream s)
throws java.io.IOException
java.io.IOExceptionpublic void encodeToOutputStream(java.lang.Object data,
java.io.OutputStream s)
throws java.io.IOException
java.io.IOExceptionpublic final java.lang.Object convertFromCharacters(char[] ch,
int start,
int length)
public final void convertToCharacters(java.lang.Object data,
java.lang.StringBuffer s)
public final int getPrimtiveLengthFromOctetLength(int octetLength)
throws EncodingAlgorithmException
getPrimtiveLengthFromOctetLength in class BuiltInEncodingAlgorithmEncodingAlgorithmExceptionpublic int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength in class BuiltInEncodingAlgorithmpublic final void encodeToBytes(java.lang.Object array,
int astart,
int alength,
byte[] b,
int start)
encodeToBytes in class BuiltInEncodingAlgorithm