org.whattf.datatype
Class DatatypeStreamingValidatorImpl

java.lang.Object
  extended by org.whattf.datatype.DatatypeStreamingValidatorImpl
All Implemented Interfaces:
DatatypeStreamingValidator

public final class DatatypeStreamingValidatorImpl
extends Object
implements DatatypeStreamingValidator


Field Summary
private  StringBuilder buffer
           
private  AbstractDatatype datatype
           
 
Constructor Summary
DatatypeStreamingValidatorImpl(AbstractDatatype datatype)
           
 
Method Summary
 void addCharacters(char[] buf, int start, int len)
           
 void checkValid()
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datatype

private final AbstractDatatype datatype

buffer

private final StringBuilder buffer
Constructor Detail

DatatypeStreamingValidatorImpl

public DatatypeStreamingValidatorImpl(AbstractDatatype datatype)
Method Detail

addCharacters

public void addCharacters(char[] buf,
                          int start,
                          int len)
Specified by:
addCharacters in interface DatatypeStreamingValidator

isValid

public boolean isValid()
Specified by:
isValid in interface DatatypeStreamingValidator

checkValid

public void checkValid()
                throws DatatypeException
Specified by:
checkValid in interface DatatypeStreamingValidator
Throws:
DatatypeException