다음을 통해 공유


SAXParserFactory.NewInstance Method

Definition

Overloads

NewInstance()

Returns Android's implementation of SAXParserFactory.

NewInstance(String, ClassLoader)

Returns an instance of the named implementation of SAXParserFactory.

NewInstance()

Returns Android's implementation of SAXParserFactory.

[Android.Runtime.Register("newInstance", "()Ljavax/xml/parsers/SAXParserFactory;", "")]
public static Javax.Xml.Parsers.SAXParserFactory? NewInstance ();
[<Android.Runtime.Register("newInstance", "()Ljavax/xml/parsers/SAXParserFactory;", "")>]
static member NewInstance : unit -> Javax.Xml.Parsers.SAXParserFactory

Returns

a new SAXParserFactory.

Attributes

Exceptions

never. Included for API compatibility with other Java implementations.

Remarks

Returns Android's implementation of SAXParserFactory. Unlike other Java implementations, this method does not consult system properties, property files, or the services API.

Java documentation for javax.xml.parsers.SAXParserFactory.newInstance().

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

NewInstance(String, ClassLoader)

Returns an instance of the named implementation of SAXParserFactory.

[Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/SAXParserFactory;", "")]
public static Javax.Xml.Parsers.SAXParserFactory? NewInstance (string? factoryClassName, Java.Lang.ClassLoader? classLoader);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/SAXParserFactory;", "")>]
static member NewInstance : string * Java.Lang.ClassLoader -> Javax.Xml.Parsers.SAXParserFactory

Parameters

factoryClassName
String
classLoader
ClassLoader

Returns

a new SAXParserFactory.

Attributes

Exceptions

if factoryClassName is not available or cannot be instantiated.

Remarks

Returns an instance of the named implementation of SAXParserFactory.

Added in 1.6.

Java documentation for javax.xml.parsers.SAXParserFactory.newInstance(java.lang.String, java.lang.ClassLoader).

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