HandlerBase.StartDocument 方法

定义

注意

deprecated

接收文档开头的通知。

[Android.Runtime.Register("startDocument", "()V", "GetStartDocumentHandler")]
[System.Obsolete("deprecated")]
public virtual void StartDocument();
[<Android.Runtime.Register("startDocument", "()V", "GetStartDocumentHandler")>]
[<System.Obsolete("deprecated")>]
abstract member StartDocument : unit -> unit
override this.StartDocument : unit -> unit

实现

属性

例外

任何 SAX 异常,可能包装另一个异常。

注解

接收文档开头的通知。

默认情况下,不执行任何操作。 应用程序编写器可以在子类中重写此方法,以在文档开头执行特定操作(例如分配树的根节点或创建输出文件)。

Java文档org.xml.sax.HandlerBase.startDocument()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅