public class HTMLConfiguration
extends ParserConfigurationSettings
This configuration recognizes the following features:
This configuration recognizes the following properties:
For complete usage information, refer to the documentation.
HTMLScanner, 
HTMLTagBalancer, 
HTMLErrorReporter| Modifier and Type | Class and Description | 
|---|---|
| protected class  | HTMLConfiguration.ErrorReporterDefines an error reporter for reporting HTML errors. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected static java.lang.String | AUGMENTATIONSInclude infoset augmentations. | 
| protected static java.lang.String | BALANCE_TAGSBalance tags. | 
| protected static java.lang.String | ERROR_DOMAINError domain. | 
| protected static java.lang.String | ERROR_REPORTERError reporter. | 
| protected boolean | fCloseStreamStream opened by parser. | 
| protected XMLDocumentHandler | fDocumentHandlerDocument handler. | 
| protected HTMLScanner | fDocumentScannerDocument scanner. | 
| protected XMLDTDContentModelHandler | fDTDContentModelHandlerDTD content model handler. | 
| protected XMLDTDHandler | fDTDHandlerDTD handler. | 
| protected XMLEntityResolver | fEntityResolverEntity resolver. | 
| protected XMLErrorHandler | fErrorHandlerError handler. | 
| protected HTMLErrorReporter | fErrorReporterError reporter. | 
| protected java.util.Vector | fHTMLComponentsComponents. | 
| protected static java.lang.String | FILTERSPipeline filters. | 
| protected java.util.Locale | fLocaleLocale. | 
| protected NamespaceBinder | fNamespaceBinderNamespace binder. | 
| protected HTMLTagBalancer | fTagBalancerHTML tag balancer. | 
| protected static java.lang.String | NAMES_ATTRSModify HTML attribute names: { "upper", "lower", "default" }. | 
| protected static java.lang.String | NAMES_ELEMSModify HTML element names: { "upper", "lower", "default" }. | 
| protected static java.lang.String | NAMESPACESNamespaces. | 
| protected static java.lang.String | REPORT_ERRORSReport errors. | 
| protected static java.lang.String | SIMPLE_ERROR_FORMATSimple report format. | 
| protected static boolean | XERCES_2_0_0Parser version is Xerces 2.0.0. | 
| protected static boolean | XERCES_2_0_1Parser version is Xerces 2.0.1. | 
| protected static boolean | XML4J_4_0_xParser version is XML4J 4.0.x. | 
| Constructor and Description | 
|---|
| HTMLConfiguration()Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addComponent(HTMLComponent component)Adds a component. | 
| void | cleanup()If the application decides to terminate parsing before the xml document
 is fully parsed, the application should call this method to free any
 resource allocated during parsing. | 
| protected HTMLScanner | createDocumentScanner() | 
| void | evaluateInputSource(XMLInputSource inputSource)EXPERIMENTAL: may change in next release Immediately evaluates an input source and add the new content (e.g. | 
| XMLDocumentHandler | getDocumentHandler()Returns the document handler. | 
| XMLDTDContentModelHandler | getDTDContentModelHandler()Returns the DTD content model handler. | 
| XMLDTDHandler | getDTDHandler()Returns the DTD handler. | 
| XMLEntityResolver | getEntityResolver()Returns the entity resolver. | 
| XMLErrorHandler | getErrorHandler()Returns the error handler. | 
| java.util.Locale | getLocale()Returns the locale. | 
| void | parse(XMLInputSource source)Parses a document. | 
| void | pushInputSource(XMLInputSource inputSource)Pushes an input source onto the current entity stack. | 
| protected void | reset()Resets the parser configuration. | 
| void | setDocumentHandler(XMLDocumentHandler handler)Sets the document handler. | 
| void | setDTDContentModelHandler(XMLDTDContentModelHandler handler)Sets the DTD content model handler. | 
| void | setDTDHandler(XMLDTDHandler handler)Sets the DTD handler. | 
| void | setEntityResolver(XMLEntityResolver resolver)Sets the entity resolver. | 
| void | setErrorHandler(XMLErrorHandler handler)Sets the error handler. | 
| void | setFeature(java.lang.String featureId,
          boolean state)Sets a feature. | 
| void | setInputSource(XMLInputSource inputSource)Sets the input source for the document to parse. | 
| void | setLocale(java.util.Locale locale)Sets the locale. | 
| void | setProperty(java.lang.String propertyId,
           java.lang.Object value)Sets a property. | 
protected static final java.lang.String NAMESPACES
protected static final java.lang.String AUGMENTATIONS
protected static final java.lang.String REPORT_ERRORS
protected static final java.lang.String SIMPLE_ERROR_FORMAT
protected static final java.lang.String BALANCE_TAGS
protected static final java.lang.String NAMES_ELEMS
protected static final java.lang.String NAMES_ATTRS
protected static final java.lang.String FILTERS
protected static final java.lang.String ERROR_REPORTER
protected static final java.lang.String ERROR_DOMAIN
protected XMLDocumentHandler fDocumentHandler
protected XMLDTDHandler fDTDHandler
protected XMLDTDContentModelHandler fDTDContentModelHandler
protected XMLErrorHandler fErrorHandler
protected XMLEntityResolver fEntityResolver
protected java.util.Locale fLocale
protected boolean fCloseStream
protected final java.util.Vector fHTMLComponents
protected final HTMLScanner fDocumentScanner
protected final HTMLTagBalancer fTagBalancer
protected final NamespaceBinder fNamespaceBinder
protected final HTMLErrorReporter fErrorReporter
protected static boolean XERCES_2_0_0
protected static boolean XERCES_2_0_1
protected static boolean XML4J_4_0_x
protected HTMLScanner createDocumentScanner()
public void pushInputSource(XMLInputSource inputSource)
Hint: To use this feature to insert the output of <SCRIPT> tags, remember to buffer the entire output of the processed instructions before pushing a new input source. Otherwise, events may appear out of sequence.
inputSource - The new input source to start scanning.evaluateInputSource(XMLInputSource)public void evaluateInputSource(XMLInputSource inputSource)
inputSource - The new input source to start scanning.pushInputSource(XMLInputSource)public void setFeature(java.lang.String featureId,
              boolean state)
                throws XMLConfigurationException
XMLConfigurationExceptionpublic void setProperty(java.lang.String propertyId,
               java.lang.Object value)
                 throws XMLConfigurationException
XMLConfigurationExceptionpublic void setDocumentHandler(XMLDocumentHandler handler)
public XMLDocumentHandler getDocumentHandler()
public void setDTDHandler(XMLDTDHandler handler)
public XMLDTDHandler getDTDHandler()
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler)
public XMLDTDContentModelHandler getDTDContentModelHandler()
public void setErrorHandler(XMLErrorHandler handler)
public XMLErrorHandler getErrorHandler()
public void setEntityResolver(XMLEntityResolver resolver)
public XMLEntityResolver getEntityResolver()
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
public void parse(XMLInputSource source)
           throws XNIException,
                  java.io.IOException
XNIExceptionjava.io.IOExceptionpublic void setInputSource(XMLInputSource inputSource)
                    throws XMLConfigurationException,
                           java.io.IOException
inputSource - The document's input source.XMLConfigurationException - Thrown if there is a 
                        configuration error when initializing the
                        parser.java.io.IOException - Thrown on I/O error.#parse(boolean)public void cleanup()
protected void addComponent(HTMLComponent component)
protected void reset()
              throws XMLConfigurationException
XMLConfigurationException(C) Copyright 2002-2014, Andy Clark, Marc Guillemot. All rights reserved.