| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
decodingTable |
protected byte[] |
encodingTable |
| 构造器和说明 |
|---|
HexEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
decode(byte[] data,
int off,
int length,
OutputStream out)
decode the HexCodec encoded byte data writing it to the given output stream,
whitespace characters will be ignored.
|
int |
decode(String data,
OutputStream out)
decode the HexCodec encoded String data writing it to the given output stream,
whitespace characters will be ignored.
|
int |
encode(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff) |
int |
encode(byte[] buf,
int off,
int len,
OutputStream out)
encode the input data producing a HexCodec output stream.
|
int |
getEncodedLength(int inputLength) |
int |
getMaxDecodedLength(int inputLength) |
protected void |
initialiseDecodingTable() |
protected final byte[] encodingTable
protected final byte[] decodingTable
protected void initialiseDecodingTable()
public int encode(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
throws IOException
IOExceptionpublic int getEncodedLength(int inputLength)
getEncodedLength 在接口中 Encoderpublic int getMaxDecodedLength(int inputLength)
getMaxDecodedLength 在接口中 Encoderpublic int encode(byte[] buf,
int off,
int len,
OutputStream out)
throws IOException
encode 在接口中 EncoderIOExceptionpublic int decode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
decode 在接口中 EncoderIOExceptionpublic int decode(String data, OutputStream out) throws IOException
decode 在接口中 EncoderIOExceptionCopyright © 2024 fossc. All rights reserved.