|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkz.gamma.hardware.util.encoders.HexEncoder
public class HexEncoder
HEX кодировщик
| Field Summary | |
|---|---|
protected byte[] |
decodingTable
|
protected byte[] |
encodingTable
Таблица кодирования |
| Constructor Summary | |
|---|---|
HexEncoder()
Конструктор |
|
| Method Summary | |
|---|---|
int |
decode(byte[] data,
int off,
int length,
java.io.OutputStream out)
decode the Hex encoded byte data writing it to the given output stream, whitespace characters will be ignored. |
int |
decode(java.lang.String data,
java.io.OutputStream out)
decode the Hex encoded String data writing it to the given output stream, whitespace characters will be ignored. |
int |
encode(byte[] data,
int off,
int length,
java.io.OutputStream out)
encode the input data producing a Hex output stream. |
private boolean |
ignore(char c)
Игнорирование символов '\n', '\r', '\t', ' ' |
protected void |
initialiseDecodingTable()
Инициализация таблицы декодирования |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final byte[] encodingTable
protected final byte[] decodingTable
| Constructor Detail |
|---|
public HexEncoder()
| Method Detail |
|---|
protected void initialiseDecodingTable()
public int encode(byte[] data,
int off,
int length,
java.io.OutputStream out)
throws java.io.IOException
encode in interface Encoderdata - Данные для кодированияoff - Начальный сдвигlength - Длинаout - Поток для записи
java.io.IOExceptionprivate boolean ignore(char c)
c - Символ
public int decode(byte[] data,
int off,
int length,
java.io.OutputStream out)
throws java.io.IOException
decode in interface Encoderdata - Данные для декодированияoff - Начальный сдвигlength - Длинаout - Поток для записи
java.io.IOException
public int decode(java.lang.String data,
java.io.OutputStream out)
throws java.io.IOException
decode in interface Encoderdata - Данные для декодированияout - Поток для записи
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||