Home » Open-JDK-6.b17-src » org.relaxng » datatype » helpers » [javadoc | source]
org.relaxng.datatype.helpers
public final class: StreamingValidatorImpl [javadoc | source]
java.lang.Object
   org.relaxng.datatype.helpers.StreamingValidatorImpl

All Implemented Interfaces:
    DatatypeStreamingValidator

Dummy implementation of 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:
 public StreamingValidatorImpl(Datatype baseType,
    ValidationContext context) 
Method from org.relaxng.datatype.helpers.StreamingValidatorImpl Summary:
addCharacters,   checkValid,   isValid
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.relaxng.datatype.helpers.StreamingValidatorImpl Detail:
 public  void addCharacters(char[] buf,
    int start,
    int len) 
 public  void checkValid() throws DatatypeException 
 public boolean isValid()