public class ValidationXsdUtils extends Object
| Constructor and Description |
|---|
ValidationXsdUtils() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFileRNG(InputStream xmlFile,
File xsdFile) |
boolean |
checkFileXSD(InputStream xmlFile,
File xsdFile) |
boolean |
checkWithXSD(InputStream xmlFile,
String xsdFile) |
static ValidationXsdUtils |
getInstance() |
public static ValidationXsdUtils getInstance()
public boolean checkWithXSD(InputStream xmlFile, String xsdFile) throws SAXException, IOException, XMLStreamException
xmlFile - the file to validatexsdFile - the xsd schema to validate with the fileFileNotFoundException - if the file is not foundXMLStreamException - if it couldnt create an xml stream readerSAXException - if the file is not valid with the XSD, or the file is not an xml fileIOException - if the schema file could not be foundpublic boolean checkFileXSD(InputStream xmlFile, File xsdFile) throws SAXException, IOException, XMLStreamException
xmlFile - xsdFile - SAXExceptionIOExceptionXMLStreamExceptionpublic boolean checkFileRNG(InputStream xmlFile, File xsdFile) throws SAXException, IOException
xmlFile - xsdFile - SAXExceptionIOExceptionCopyright © 2020 Vitam. All rights reserved.