Udostępnij za pośrednictwem


SAXSource Constructors

Definition

Overloads

SAXSource()

Zero-argument default constructor.

SAXSource(InputSource)

Create a SAXSource, using a SAX InputSource.

SAXSource(IXMLReader, InputSource)

Create a SAXSource, using an org.xml.sax.XMLReader and a SAX InputSource.

SAXSource(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SAXSource()

Zero-argument default constructor.

[Android.Runtime.Register(".ctor", "()V", "")]
public SAXSource ();
Attributes

Remarks

Zero-argument default constructor. If this constructor is used, and no SAX source is set using #setInputSource(InputSource inputSource) , then the Transformer will create an empty source org.xml.sax.InputSource using org.xml.sax.InputSource#InputSource() new InputSource().

Java documentation for javax.xml.transform.sax.SAXSource.SAXSource().

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

  • <xref:Javax.Xml.Transform.Transformer.Transform(Javax.Xml.Transform.ISource%2c+Javax.Xml.Transform.IResult)>

Applies to

SAXSource(InputSource)

Create a SAXSource, using a SAX InputSource.

[Android.Runtime.Register(".ctor", "(Lorg/xml/sax/InputSource;)V", "")]
public SAXSource (Org.Xml.Sax.InputSource? inputSource);
[<Android.Runtime.Register(".ctor", "(Lorg/xml/sax/InputSource;)V", "")>]
new Javax.Xml.Transform.Sax.SAXSource : Org.Xml.Sax.InputSource -> Javax.Xml.Transform.Sax.SAXSource

Parameters

inputSource
InputSource

An input source reference that must be non-null and that will be passed to the parse method of the reader.

Attributes

Remarks

Create a SAXSource, using a SAX InputSource. The javax.xml.transform.Transformer or javax.xml.transform.sax.SAXTransformerFactory creates a reader via org.xml.sax.helpers.XMLReaderFactory (if setXMLReader is not used), sets itself as the reader's org.xml.sax.ContentHandler, and calls reader.parse(inputSource).

Java documentation for javax.xml.transform.sax.SAXSource.SAXSource(org.xml.sax.InputSource).

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.

Applies to

SAXSource(IXMLReader, InputSource)

Create a SAXSource, using an org.xml.sax.XMLReader and a SAX InputSource.

[Android.Runtime.Register(".ctor", "(Lorg/xml/sax/XMLReader;Lorg/xml/sax/InputSource;)V", "")]
public SAXSource (Org.Xml.Sax.IXMLReader? reader, Org.Xml.Sax.InputSource? inputSource);
[<Android.Runtime.Register(".ctor", "(Lorg/xml/sax/XMLReader;Lorg/xml/sax/InputSource;)V", "")>]
new Javax.Xml.Transform.Sax.SAXSource : Org.Xml.Sax.IXMLReader * Org.Xml.Sax.InputSource -> Javax.Xml.Transform.Sax.SAXSource

Parameters

reader
IXMLReader

An XMLReader to be used for the parse.

inputSource
InputSource

A SAX input source reference that must be non-null and that will be passed to the reader parse method.

Attributes

Remarks

Create a SAXSource, using an org.xml.sax.XMLReader and a SAX InputSource. The javax.xml.transform.Transformer or javax.xml.transform.sax.SAXTransformerFactory will set itself to be the reader's org.xml.sax.ContentHandler, and then will call reader.parse(inputSource).

Java documentation for javax.xml.transform.sax.SAXSource.SAXSource(org.xml.sax.XMLReader, org.xml.sax.InputSource).

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.

Applies to

SAXSource(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SAXSource (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Xml.Transform.Sax.SAXSource : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Xml.Transform.Sax.SAXSource

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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.

Applies to