Package org.daisy.validator
Interface Validator
-
- All Known Implementing Classes:
PEFValidator
public interface Validator extends Factory
Simple interface for validators- Author:
- Joel HÃ¥kansson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
getReportStream()
Gets the report for the latest call to validateboolean
validate(java.net.URL input)
Validates the resource at the given URL-
Methods inherited from interface org.daisy.factory.Factory
getDescription, getDisplayName, getFeature, getIdentifier, getProperty, setFeature
-
-
-
-
Method Detail
-
validate
boolean validate(java.net.URL input)
Validates the resource at the given URL- Parameters:
input
- the resource URL- Returns:
- returns true if validation was successful and resource is valid, false otherwise
-
getReportStream
java.io.InputStream getReportStream()
Gets the report for the latest call to validate- Returns:
- returns an InputStream for the report
-
-