| com.bluecast.io.CharsetDecoder
CharsetDecoder | public interface CharsetDecoder (Code) | | Converts bytes to characters.
author: Yuval Oren version: $Revision: 1.4 $ |
Method Summary | |
public void | decode(byte[] in_buf, int in_off, int in_len, char[] out_buf, int out_off, int out_len, int[] result) Decodes an array of bytes into characters. | public int | maxBytesPerChar() Minimum number of characters produced per byte using
this decoder. | public int | minBytesPerChar() Minimum number of characters produced per byte using
this decoder. | public CharsetDecoder | newCharsetDecoder() | public void | reset() |
decode | public void decode(byte[] in_buf, int in_off, int in_len, char[] out_buf, int out_off, int out_len, int[] result) throws CharConversionException(Code) | | Decodes an array of bytes into characters.
Parameters: in_buf - input byte buffer Parameters: in_off - starting byte buffer offset Parameters: in_len - max number of bytes to read Parameters: out_buf - output character buffer Parameters: out_off - char buffer offset at which to start writing Parameters: out_len - max number of chars to write Parameters: result - an array of size >= 2 where results are returned:result[0] = number of bytes read.result[1] = number of chars written |
maxBytesPerChar | public int maxBytesPerChar()(Code) | | Minimum number of characters produced per byte using
this decoder.
|
minBytesPerChar | public int minBytesPerChar()(Code) | | Minimum number of characters produced per byte using
this decoder.
|
reset | public void reset()(Code) | | |
|
|