public final class ISO8859_1XMLDecoder extends java.lang.Object implements XMLDecoder
Constructor and Description |
---|
ISO8859_1XMLDecoder() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
decodeXMLDecl(byte[] in_buf,
int in_off,
int in_len,
char[] out_buf,
int out_off,
int out_len,
int[] result)
Decodes the XML declaration from an array of bytes into characters.
|
int |
maxBytesPerChar()
Minimum number of characters produced per byte using
this decoder.
|
int |
minBytesPerChar()
Minimum number of characters produced per byte using
this decoder.
|
CharsetDecoder |
newCharsetDecoder() |
XMLDecoder |
newXMLDecoder() |
void |
reset() |
public CharsetDecoder newCharsetDecoder()
newCharsetDecoder
in interface CharsetDecoder
public XMLDecoder newXMLDecoder()
newXMLDecoder
in interface XMLDecoder
public int minBytesPerChar()
CharsetDecoder
minBytesPerChar
in interface CharsetDecoder
public int maxBytesPerChar()
CharsetDecoder
maxBytesPerChar
in interface CharsetDecoder
public void reset()
reset
in interface CharsetDecoder
public void decode(byte[] in_buf, int in_off, int in_len, char[] out_buf, int out_off, int out_len, int[] result) throws java.io.CharConversionException
CharsetDecoder
decode
in interface CharsetDecoder
in_buf
- input byte bufferin_off
- starting byte buffer offsetin_len
- max number of bytes to readout_buf
- output character bufferout_off
- char buffer offset at which to start writingout_len
- max number of chars to writeresult
- an array of size >= 2 where results are returned:
result[0] = number of bytes read.
result[1] = number of chars writtenjava.io.CharConversionException
public void decodeXMLDecl(byte[] in_buf, int in_off, int in_len, char[] out_buf, int out_off, int out_len, int[] result) throws java.io.CharConversionException
XMLDecoder
decodeXMLDecl
in interface XMLDecoder
in_buf
- input byte bufferin_off
- starting byte buffer offsetin_len
- max number of bytes to readout_buf
- output character bufferout_off
- char buffer offset at which to start writingout_len
- max number of chars to writeresult
- an array of size >= 2 where results are returned:
result[0] = number of bytes read.
result[1] = number of chars writtenjava.io.CharConversionException