info.sswap.ontologies.data.api
Interface Validator


public interface Validator

Interface to web resources that validate data.

Author:
Damian Gessler

Method Summary
 java.io.InputStream validate(java.io.InputStream inputStream)
          Method acts as a filter: it is passed an input stream and should return a input stream of validated data suitable for immediate reading.
 

Method Detail

validate

java.io.InputStream validate(java.io.InputStream inputStream)
                             throws java.io.IOException,
                                    ValidatorException
Method acts as a filter: it is passed an input stream and should return a input stream of validated data suitable for immediate reading.

Method may be called on input data after it is parsed, or output data before it is serialized.

Parameters:
inputStream - raw (pre-validated) stream to be read
Returns:
validated stream ready for reading
Throws:
java.io.IOException - on any network error
ValidatorException - on any Validator-specific error


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.