Class DefaultHandler2
This class extends the SAX2 base handler class to support the SAX2 ILexicalHandler, IDeclHandler, and IEntityResolver2 extensions. Except for overriding the original SAX1 ResolveEntity(String, String) method the added handler methods just return. Subclassers may override everything on a method-by-method basis.
Inherited Members
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class DefaultHandler2 : DefaultHandler, IDTDHandler, IContentHandler, IErrorHandler, ILexicalHandler, IDeclHandler, IEntityResolver2, IEntityResolver
Remarks
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.
Note: this class might yet learn that the SetDocumentLocator(ILocator) call might be passed a Locator2 object, and that the ContentHandler.startElement() call might be passed a Attributes2 object.
Constructors
Name | Description |
---|---|
DefaultHandler2() | Constructs a handler which ignores all parsing events. |
Methods
Name | Description |
---|---|
AttributeDecl(String, String, String, String, String) | |
Comment(Char[], Int32, Int32) | |
ElementDecl(String, String) | |
EndCDATA() | |
EndDTD() | |
EndEntity(String) | |
ExternalEntityDecl(String, String, String) | |
GetExternalSubset(String, String) | Tells the parser that if no external subset has been declared in the document text, none should be used. |
InternalEntityDecl(String, String) | |
ResolveEntity(String, String) | Invokes ResolveEntity(String, String, String, String) with null entity name and base URI. You only need to override that method to use this class. |
ResolveEntity(String, String, String, String) | Tells the parser to resolve the systemId against the baseURI
and read the entity text from that resulting absolute URI.
Note that because the older ResolveEntity(String, String),
method is overridden to call this one, this method may sometimes
be invoked with null |
StartCDATA() | |
StartDTD(String, String, String) | |
StartEntity(String) |