org.relaxng.datatype.helpers
public final class StreamingValidatorImpl extends Object implements DatatypeStreamingValidator
This implementation can be used as a quick hack when the performance of streaming validation is not important. And this implementation also shows you how to implement the DatatypeStreamingValidator interface.
Typical usage would be:
class MyDatatype implements Datatype { .... public DatatypeStreamingValidator createStreamingValidator( ValidationContext context ) { return new StreamingValidatorImpl(this,context); } .... }
Constructor Summary | |
---|---|
StreamingValidatorImpl(Datatype baseType, ValidationContext context) |
Method Summary | |
---|---|
void | addCharacters(char[] buf, int start, int len) |
void | checkValid() |
boolean | isValid() |