# Uses of Class
javax.xml.stream.XMLEventFactory

Packages that use XMLEventFactory
Package
Description
javax.xml.stream
Defines interfaces and classes for the Streaming API for XML (StAX).

## Uses of XMLEventFactory in javax.xml.stream

Methods in javax.xml.stream that return XMLEventFactory
Modifier and Type
Method
Description
`static XMLEventFactory`
XMLEventFactory.`newDefaultFactory()`
Creates a new instance of the `XMLEventFactory` builtin system-default implementation.
`static XMLEventFactory`
XMLEventFactory.`newFactory()`
Creates a new instance of the factory.
`static XMLEventFactory`
XMLEventFactory.`newFactory(String factoryId, ClassLoader classLoader)`
Create a new instance of the factory.
`static XMLEventFactory`
XMLEventFactory.`newInstance()`
Creates a new instance of the factory in exactly the same manner as the `XMLEventFactory.newFactory()` method.
`static XMLEventFactory`
XMLEventFactory.`newInstance(String factoryId, ClassLoader classLoader)`
Deprecated.
This method has been deprecated to maintain API consistency.