Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    DefaultHandler
    DefaultHandler2
    Implements
    IDTDHandler
    IContentHandler
    IErrorHandler
    ILexicalHandler
    IDeclHandler
    IEntityResolver2
    IEntityResolver
    Inherited Members
    DefaultHandler.NotationDecl(String, String, String)
    DefaultHandler.UnparsedEntityDecl(String, String, String, String)
    DefaultHandler.SetDocumentLocator(ILocator)
    DefaultHandler.StartDocument()
    DefaultHandler.EndDocument()
    DefaultHandler.StartPrefixMapping(String, String)
    DefaultHandler.EndPrefixMapping(String)
    DefaultHandler.StartElement(String, String, String, IAttributes)
    DefaultHandler.EndElement(String, String, String)
    DefaultHandler.Characters(Char[], Int32, Int32)
    DefaultHandler.IgnorableWhitespace(Char[], Int32, Int32)
    DefaultHandler.ProcessingInstruction(String, String)
    DefaultHandler.SkippedEntity(String)
    DefaultHandler.Warning(SAXParseException)
    DefaultHandler.Error(SAXParseException)
    DefaultHandler.FatalError(SAXParseException)
    Namespace: Sax.Ext
    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

    | Improve this Doc View Source

    DefaultHandler2()

    Constructs a handler which ignores all parsing events.

    Declaration
    public DefaultHandler2()

    Methods

    | Improve this Doc View Source

    AttributeDecl(String, String, String, String, String)

    Declaration
    public virtual void AttributeDecl(string eName, string aName, string type, string mode, string value)
    Parameters
    Type Name Description
    System.String eName
    System.String aName
    System.String type
    System.String mode
    System.String value
    | Improve this Doc View Source

    Comment(Char[], Int32, Int32)

    Declaration
    public virtual void Comment(char[] ch, int start, int length)
    Parameters
    Type Name Description
    System.Char[] ch
    System.Int32 start
    System.Int32 length
    | Improve this Doc View Source

    ElementDecl(String, String)

    Declaration
    public virtual void ElementDecl(string name, string model)
    Parameters
    Type Name Description
    System.String name
    System.String model
    | Improve this Doc View Source

    EndCDATA()

    Declaration
    public virtual void EndCDATA()
    | Improve this Doc View Source

    EndDTD()

    Declaration
    public virtual void EndDTD()
    | Improve this Doc View Source

    EndEntity(String)

    Declaration
    public virtual void EndEntity(string name)
    Parameters
    Type Name Description
    System.String name
    | Improve this Doc View Source

    ExternalEntityDecl(String, String, String)

    Declaration
    public virtual void ExternalEntityDecl(string name, string publicId, string systemId)
    Parameters
    Type Name Description
    System.String name
    System.String publicId
    System.String systemId
    | Improve this Doc View Source

    GetExternalSubset(String, String)

    Tells the parser that if no external subset has been declared in the document text, none should be used.

    Declaration
    public virtual InputSource GetExternalSubset(string name, string baseURI)
    Parameters
    Type Name Description
    System.String name
    System.String baseURI
    Returns
    Type Description
    InputSource
    | Improve this Doc View Source

    InternalEntityDecl(String, String)

    Declaration
    public virtual void InternalEntityDecl(string name, string value)
    Parameters
    Type Name Description
    System.String name
    System.String value
    | Improve this Doc View Source

    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.

    Declaration
    public override InputSource ResolveEntity(string publicId, string systemId)
    Parameters
    Type Name Description
    System.String publicId
    System.String systemId
    Returns
    Type Description
    InputSource
    Overrides
    DefaultHandler.ResolveEntity(String, String)
    | Improve this Doc View Source

    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 name and baseURI, and with the systemId already absolutized.

    Declaration
    public virtual InputSource ResolveEntity(string name, string publicId, string baseURI, string systemId)
    Parameters
    Type Name Description
    System.String name
    System.String publicId
    System.String baseURI
    System.String systemId
    Returns
    Type Description
    InputSource
    | Improve this Doc View Source

    StartCDATA()

    Declaration
    public virtual void StartCDATA()
    | Improve this Doc View Source

    StartDTD(String, String, String)

    Declaration
    public virtual void StartDTD(string name, string publicId, string systemId)
    Parameters
    Type Name Description
    System.String name
    System.String publicId
    System.String systemId
    | Improve this Doc View Source

    StartEntity(String)

    Declaration
    public virtual void StartEntity(string name)
    Parameters
    Type Name Description
    System.String name

    Implements

    IDTDHandler
    IContentHandler
    IErrorHandler
    ILexicalHandler
    IDeclHandler
    IEntityResolver2
    IEntityResolver
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)