1 package pl.psnc.dl.ege.validator.xml;
2
3 import java.io.FileNotFoundException;
4 import java.io.IOException;
5 import java.io.InputStream;
6
7 import org.xml.sax.ErrorHandler;
8 import org.xml.sax.SAXException;
9
10 /**
11 * <p>Standard EGE XML validation interface.</p>
12 * Implemented class should receive and possibly record errors through ErrorHandler implementation.
13 *
14 * @author mariuszs
15 */
16 public interface XmlValidator
17 {
18 /**
19 * Performs validation over stream of XML data.
20 * Validation messages and status can be reported through {@link ErrorHandler} implementation.
21 *
22 * @param errorHandler
23 * @param inputData
24 * @throws SAXException
25 * @throws IOException
26 */
27 public void validateXml(InputStream inputData, ErrorHandler errorHandler) throws SAXException, FileNotFoundException, IOException, Exception;
28
29 }