SAXParserFactory.NewInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NewInstance() |
Returns Android's implementation of |
NewInstance(String, ClassLoader) |
Returns an instance of the named implementation of |
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.
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.