# Uses of Class
javax.xml.stream.XMLInputFactory

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

- ## Uses of XMLInputFactory in javax.xml.stream

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