Class XmlFactoryProvider


  • public class XmlFactoryProvider
    extends java.lang.Object
    Provides XMLInputFactory and XMLOutputFactory in an OSGI context. In a no-OSGI context, the factories are retrieved with java service loader.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.codehaus.stax2.osgi.Stax2InputFactoryProvider inputFactoryProvider
      Allow to explicitly set the Stax2InputFactory instance in OSGI context.
      static org.codehaus.stax2.osgi.Stax2OutputFactoryProvider outputFactoryProvider
      Allow to explicitly set the Stax2OutputFactoryProvider instance in OSGI context.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.xml.stream.XMLInputFactory newInputFactory()
      Returns an instance of XMLInputFactory according to the classpath.
      static javax.xml.stream.XMLOutputFactory newOutputFactory()
      Returns an instance of XMLInputFactory according to the classpath.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inputFactoryProvider

        public static org.codehaus.stax2.osgi.Stax2InputFactoryProvider inputFactoryProvider
        Allow to explicitly set the Stax2InputFactory instance in OSGI context. In a no-OSGI context, the factory is retrieved with java service loader.

        Note: Stax2 implementation is provided by woodstox library which is a dependency of Jackson.

        See Also:
        Activator
      • outputFactoryProvider

        public static org.codehaus.stax2.osgi.Stax2OutputFactoryProvider outputFactoryProvider
        Allow to explicitly set the Stax2OutputFactoryProvider instance in OSGI context. In a no-OSGI context, the factory is retrieved with java service loader.

        Note: Stax2 implementation is provided by woodstox library which is a dependency of Jackson.

        See Also:
        Activator
    • Constructor Detail

      • XmlFactoryProvider

        public XmlFactoryProvider()
    • Method Detail

      • newInputFactory

        public static javax.xml.stream.XMLInputFactory newInputFactory()
        Returns an instance of XMLInputFactory according to the classpath.
      • newOutputFactory

        public static javax.xml.stream.XMLOutputFactory newOutputFactory()
        Returns an instance of XMLInputFactory according to the classpath.