|
Oracle® Database Globalization Development Kit Java API Reference 10g Release 2 (10.2) Part No. B14224-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Reader | +--java.io.FilterReader | +--oracle.i18n.text.CharacterValidationReader
The CharacterValidationReader
class is the validator class
that checks the conversion failure, and optionally checks the HTML.
Do not use this validator class if the source is allowed to include
U+FFFD
since this validator cannot distinguish whether
the 0xfffd
was given because of the conversion failure
or intentionally being added.
Field Summary |
Fields inherited from class java.io.FilterReader |
in |
Fields inherited from class java.io.Reader |
lock |
Constructor Summary | |
CharacterValidationReader(Reader r)
Constructs this object with the Reader object.
|
Method Summary | |
int |
read()
Reads a single character. |
int |
read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array. |
Methods inherited from class java.io.FilterReader |
close, mark, markSupported, ready, reset, skip |
Methods inherited from class java.io.Reader |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CharacterValidationReader(Reader r) throws IOException
Reader
object.
By default, HTML character and entity reference is not checked.
r
- the input Reader
object
IOException
- if any I/O exception occursMethod Detail |
public int read() throws CharConversionException, IOException
read
in class FilterReader
0
to 65535
(0x00-0xffff
),
or -1
if the end of the stream has been reached
CharConversionException
- if any invalid character is found
IOException
- if any other I/O error occurspublic int read(char[] cbuf, int off, int len) throws CharConversionException, IOException
read
in class FilterReader
cbuf
- destination bufferoff
- offset at which to start storing characterslen
- maximum number of characters to read
-1
if the end of
the stream has been reached
CharConversionException
- if any invalid character is found
IOException
- if any other I/O error occurs
|
Oracle® Database Globalization Development Kit Java API Reference 10g Release 2 (10.2) Part No. B14224-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |