Udostępnij za pośrednictwem


SAXParser.Parse Method

Definition

Overloads

Parse(Stream, HandlerBase, String)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.HandlerBase.

Parse(String, DefaultHandler)

Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified org.xml.sax.helpers.DefaultHandler.

Parse(String, HandlerBase)

Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified org.xml.sax.HandlerBase.

Parse(Stream, DefaultHandler)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

Parse(Stream, DefaultHandler, String)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

Parse(InputSource, DefaultHandler)

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.helpers.DefaultHandler.

Parse(InputSource, HandlerBase)

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.HandlerBase.

Parse(File, DefaultHandler)

Parse the content of the file specified as XML using the specified org.xml.sax.helpers.DefaultHandler.

Parse(File, HandlerBase)

Parse the content of the file specified as XML using the specified org.xml.sax.HandlerBase.

Parse(Stream, HandlerBase)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.HandlerBase.

Parse(Stream, HandlerBase, String)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.HandlerBase.

[Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/HandlerBase;Ljava/lang/String;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_HandlerBase_Ljava_lang_String_Handler")]
public virtual void Parse (System.IO.Stream? is, Org.Xml.Sax.HandlerBase? hb, string? systemId);
[<Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/HandlerBase;Ljava/lang/String;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_HandlerBase_Ljava_lang_String_Handler")>]
abstract member Parse : System.IO.Stream * Org.Xml.Sax.HandlerBase * string -> unit
override this.Parse : System.IO.Stream * Org.Xml.Sax.HandlerBase * string -> unit

Parameters

is
Stream

InputStream containing the content to be parsed.

hb
HandlerBase

The SAX HandlerBase to use.

systemId
String

The systemId which is needed for resolving relative URIs.

Attributes

Exceptions

If the given InputStream is null.

If any IO error occurs interacting with the InputStream.

If any SAX errors occur during processing.

Remarks

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.HandlerBase. Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0.

Java documentation for javax.xml.parsers.SAXParser.parse(java.io.InputStream, org.xml.sax.HandlerBase, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(String, DefaultHandler)

Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified org.xml.sax.helpers.DefaultHandler.

[Android.Runtime.Register("parse", "(Ljava/lang/String;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Ljava_lang_String_Lorg_xml_sax_helpers_DefaultHandler_Handler")]
public virtual void Parse (string? uri, Org.Xml.Sax.Helpers.DefaultHandler? dh);
[<Android.Runtime.Register("parse", "(Ljava/lang/String;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Ljava_lang_String_Lorg_xml_sax_helpers_DefaultHandler_Handler")>]
abstract member Parse : string * Org.Xml.Sax.Helpers.DefaultHandler -> unit
override this.Parse : string * Org.Xml.Sax.Helpers.DefaultHandler -> unit

Parameters

uri
String

The location of the content to be parsed.

dh
DefaultHandler

The SAX DefaultHandler to use.

Attributes

Exceptions

If the uri is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified org.xml.sax.helpers.DefaultHandler.

Java documentation for javax.xml.parsers.SAXParser.parse(java.lang.String, org.xml.sax.helpers.DefaultHandler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(String, HandlerBase)

Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified org.xml.sax.HandlerBase.

[Android.Runtime.Register("parse", "(Ljava/lang/String;Lorg/xml/sax/HandlerBase;)V", "GetParse_Ljava_lang_String_Lorg_xml_sax_HandlerBase_Handler")]
public virtual void Parse (string? uri, Org.Xml.Sax.HandlerBase? hb);
[<Android.Runtime.Register("parse", "(Ljava/lang/String;Lorg/xml/sax/HandlerBase;)V", "GetParse_Ljava_lang_String_Lorg_xml_sax_HandlerBase_Handler")>]
abstract member Parse : string * Org.Xml.Sax.HandlerBase -> unit
override this.Parse : string * Org.Xml.Sax.HandlerBase -> unit

Parameters

uri
String

The location of the content to be parsed.

hb
HandlerBase

The SAX HandlerBase to use.

Attributes

Exceptions

If the uri is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified org.xml.sax.HandlerBase. Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0

Java documentation for javax.xml.parsers.SAXParser.parse(java.lang.String, org.xml.sax.HandlerBase).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(Stream, DefaultHandler)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

[Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_helpers_DefaultHandler_Handler")]
public virtual void Parse (System.IO.Stream? is, Org.Xml.Sax.Helpers.DefaultHandler? dh);
[<Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_helpers_DefaultHandler_Handler")>]
abstract member Parse : System.IO.Stream * Org.Xml.Sax.Helpers.DefaultHandler -> unit
override this.Parse : System.IO.Stream * Org.Xml.Sax.Helpers.DefaultHandler -> unit

Parameters

is
Stream

InputStream containing the content to be parsed.

dh
DefaultHandler

The SAX DefaultHandler to use.

Attributes

Exceptions

If the given InputStream is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

Java documentation for javax.xml.parsers.SAXParser.parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(Stream, DefaultHandler, String)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

[Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;Ljava/lang/String;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_helpers_DefaultHandler_Ljava_lang_String_Handler")]
public virtual void Parse (System.IO.Stream? is, Org.Xml.Sax.Helpers.DefaultHandler? dh, string? systemId);
[<Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;Ljava/lang/String;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_helpers_DefaultHandler_Ljava_lang_String_Handler")>]
abstract member Parse : System.IO.Stream * Org.Xml.Sax.Helpers.DefaultHandler * string -> unit
override this.Parse : System.IO.Stream * Org.Xml.Sax.Helpers.DefaultHandler * string -> unit

Parameters

is
Stream

InputStream containing the content to be parsed.

dh
DefaultHandler

The SAX DefaultHandler to use.

systemId
String

The systemId which is needed for resolving relative URIs.

Attributes

Exceptions

If the given InputStream is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

Java documentation for javax.xml.parsers.SAXParser.parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(InputSource, DefaultHandler)

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.helpers.DefaultHandler.

[Android.Runtime.Register("parse", "(Lorg/xml/sax/InputSource;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Lorg_xml_sax_InputSource_Lorg_xml_sax_helpers_DefaultHandler_Handler")]
public virtual void Parse (Org.Xml.Sax.InputSource? is, Org.Xml.Sax.Helpers.DefaultHandler? dh);
[<Android.Runtime.Register("parse", "(Lorg/xml/sax/InputSource;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Lorg_xml_sax_InputSource_Lorg_xml_sax_helpers_DefaultHandler_Handler")>]
abstract member Parse : Org.Xml.Sax.InputSource * Org.Xml.Sax.Helpers.DefaultHandler -> unit
override this.Parse : Org.Xml.Sax.InputSource * Org.Xml.Sax.Helpers.DefaultHandler -> unit

Parameters

is
InputSource

The InputSource containing the content to be parsed.

dh
DefaultHandler

The SAX DefaultHandler to use.

Attributes

Exceptions

If the InputSource object is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.helpers.DefaultHandler.

Java documentation for javax.xml.parsers.SAXParser.parse(org.xml.sax.InputSource, org.xml.sax.helpers.DefaultHandler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(InputSource, HandlerBase)

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.HandlerBase.

[Android.Runtime.Register("parse", "(Lorg/xml/sax/InputSource;Lorg/xml/sax/HandlerBase;)V", "GetParse_Lorg_xml_sax_InputSource_Lorg_xml_sax_HandlerBase_Handler")]
public virtual void Parse (Org.Xml.Sax.InputSource? is, Org.Xml.Sax.HandlerBase? hb);
[<Android.Runtime.Register("parse", "(Lorg/xml/sax/InputSource;Lorg/xml/sax/HandlerBase;)V", "GetParse_Lorg_xml_sax_InputSource_Lorg_xml_sax_HandlerBase_Handler")>]
abstract member Parse : Org.Xml.Sax.InputSource * Org.Xml.Sax.HandlerBase -> unit
override this.Parse : Org.Xml.Sax.InputSource * Org.Xml.Sax.HandlerBase -> unit

Parameters

is
InputSource

The InputSource containing the content to be parsed.

hb
HandlerBase

The SAX HandlerBase to use.

Attributes

Exceptions

If the InputSource object is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.HandlerBase. Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0

Java documentation for javax.xml.parsers.SAXParser.parse(org.xml.sax.InputSource, org.xml.sax.HandlerBase).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(File, DefaultHandler)

Parse the content of the file specified as XML using the specified org.xml.sax.helpers.DefaultHandler.

[Android.Runtime.Register("parse", "(Ljava/io/File;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Ljava_io_File_Lorg_xml_sax_helpers_DefaultHandler_Handler")]
public virtual void Parse (Java.IO.File? f, Org.Xml.Sax.Helpers.DefaultHandler? dh);
[<Android.Runtime.Register("parse", "(Ljava/io/File;Lorg/xml/sax/helpers/DefaultHandler;)V", "GetParse_Ljava_io_File_Lorg_xml_sax_helpers_DefaultHandler_Handler")>]
abstract member Parse : Java.IO.File * Org.Xml.Sax.Helpers.DefaultHandler -> unit
override this.Parse : Java.IO.File * Org.Xml.Sax.Helpers.DefaultHandler -> unit

Parameters

f
File

The file containing the XML to parse

dh
DefaultHandler

The SAX DefaultHandler to use.

Attributes

Exceptions

If the File object is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content of the file specified as XML using the specified org.xml.sax.helpers.DefaultHandler.

Java documentation for javax.xml.parsers.SAXParser.parse(java.io.File, org.xml.sax.helpers.DefaultHandler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(File, HandlerBase)

Parse the content of the file specified as XML using the specified org.xml.sax.HandlerBase.

[Android.Runtime.Register("parse", "(Ljava/io/File;Lorg/xml/sax/HandlerBase;)V", "GetParse_Ljava_io_File_Lorg_xml_sax_HandlerBase_Handler")]
public virtual void Parse (Java.IO.File? f, Org.Xml.Sax.HandlerBase? hb);
[<Android.Runtime.Register("parse", "(Ljava/io/File;Lorg/xml/sax/HandlerBase;)V", "GetParse_Ljava_io_File_Lorg_xml_sax_HandlerBase_Handler")>]
abstract member Parse : Java.IO.File * Org.Xml.Sax.HandlerBase -> unit
override this.Parse : Java.IO.File * Org.Xml.Sax.HandlerBase -> unit

Parameters

f
File

The file containing the XML to parse

hb
HandlerBase

The SAX HandlerBase to use.

Attributes

Exceptions

If the File object is null.

If any IO errors occur.

If any SAX errors occur during processing.

Remarks

Parse the content of the file specified as XML using the specified org.xml.sax.HandlerBase. Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0

Java documentation for javax.xml.parsers.SAXParser.parse(java.io.File, org.xml.sax.HandlerBase).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

Parse(Stream, HandlerBase)

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.HandlerBase.

[Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/HandlerBase;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_HandlerBase_Handler")]
public virtual void Parse (System.IO.Stream? is, Org.Xml.Sax.HandlerBase? hb);
[<Android.Runtime.Register("parse", "(Ljava/io/InputStream;Lorg/xml/sax/HandlerBase;)V", "GetParse_Ljava_io_InputStream_Lorg_xml_sax_HandlerBase_Handler")>]
abstract member Parse : System.IO.Stream * Org.Xml.Sax.HandlerBase -> unit
override this.Parse : System.IO.Stream * Org.Xml.Sax.HandlerBase -> unit

Parameters

is
Stream

InputStream containing the content to be parsed.

hb
HandlerBase

The SAX HandlerBase to use.

Attributes

Exceptions

If the given InputStream is null.

If parse produces a SAX error.

If an IO error occurs interacting with the InputStream.

Remarks

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.HandlerBase. Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0.

Java documentation for javax.xml.parsers.SAXParser.parse(java.io.InputStream, org.xml.sax.HandlerBase).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to