|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Datatype streaming validator. The streaming validator is an optional feature that is useful for certain Datatypes. It allows the caller to incrementally provide the literal.
Method Summary | |
void |
characters(char[] buf,
int start,
int len)
let a streaming validator process additional literal fragment. |
void |
check()
similar to the finish method, but this method throws Exception (with possibly diagnostic information), instad of returning false. |
boolean |
finish()
gets if the accumulated literal is valid with respect to the underlying Datatype. |
Method Detail |
public void characters(char[] buf, int start, int len)
The application can call this method several times, then call the isValid method to check the validity.
public boolean finish()
This method can be called only once, and this object should be discarded after that.
public void check() throws DatatypeException
If this method returns without any exception thrown, that means the accumulated string is valid.
DatatypeException
- If the callee supports the diagnosis and the accumulated literal is invalid,
then this exception that possibly contains diagnosis information is thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |