public class SimpleDocumentValidator
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
class |
SimpleDocumentValidator.SchemaReadException |
Constructor | Description |
---|---|
SimpleDocumentValidator() |
|
SimpleDocumentValidator(boolean initializeLog4j) |
|
SimpleDocumentValidator(boolean initializeLog4j,
boolean logUrls,
boolean enableLanguageDetection) |
Modifier and Type | Method | Description |
---|---|---|
void |
checkCssFile(java.io.File file,
boolean asUTF8) |
|
void |
checkHtmlFile(java.io.File file,
boolean asUTF8) |
|
void |
checkHtmlInputSource(org.xml.sax.InputSource is) |
|
void |
checkHttpURL(java.lang.String document,
java.lang.String userAgent,
org.xml.sax.ErrorHandler errorHandler) |
|
void |
checkXmlFile(java.io.File file) |
|
void |
checkXmlInputSource(org.xml.sax.InputSource is) |
|
java.lang.String |
getMainSchemaUrl() |
|
SourceCode |
getSourceCode() |
|
void |
setAllowCss(boolean allowCss) |
|
void |
setUpMainSchema(java.lang.String schemaUrl,
org.xml.sax.ErrorHandler errorHandler) |
|
void |
setUpValidatorAndParsers(org.xml.sax.ErrorHandler docValidationErrHandler,
boolean noStream,
boolean loadExternalEnts) |
public SimpleDocumentValidator()
public SimpleDocumentValidator(boolean initializeLog4j)
public SimpleDocumentValidator(boolean initializeLog4j, boolean logUrls, boolean enableLanguageDetection)
public SourceCode getSourceCode()
public java.lang.String getMainSchemaUrl()
public void setUpMainSchema(java.lang.String schemaUrl, org.xml.sax.ErrorHandler errorHandler) throws org.xml.sax.SAXException, java.lang.Exception, SimpleDocumentValidator.SchemaReadException
org.xml.sax.SAXException
java.lang.Exception
SimpleDocumentValidator.SchemaReadException
public void setUpValidatorAndParsers(org.xml.sax.ErrorHandler docValidationErrHandler, boolean noStream, boolean loadExternalEnts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void setAllowCss(boolean allowCss)
allowCss
- The allowCss to set.public void checkHtmlInputSource(org.xml.sax.InputSource is) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void checkXmlInputSource(org.xml.sax.InputSource is) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void checkCssFile(java.io.File file, boolean asUTF8) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void checkHtmlFile(java.io.File file, boolean asUTF8) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void checkXmlFile(java.io.File file) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void checkHttpURL(java.lang.String document, java.lang.String userAgent, org.xml.sax.ErrorHandler errorHandler) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException