public class XmlFactoryProvider extends Object
XMLInputFactory
and XMLOutputFactory
in an OSGI context.
In a no-OSGI context, the factories are retrieved with java service loader.Modifier and Type | Field and 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.
|
Constructor and Description |
---|
XmlFactoryProvider() |
Modifier and Type | Method and Description |
---|---|
static XMLInputFactory |
newInputFactory()
Returns an instance of
XMLInputFactory
according to the classpath. |
static XMLOutputFactory |
newOutputFactory()
Returns an instance of
XMLInputFactory
according to the classpath. |
public static org.codehaus.stax2.osgi.Stax2InputFactoryProvider inputFactoryProvider
Note: Stax2 implementation is provided by woodstox library which is a dependency of Jackson.
org.restlet.ext.jackson.internal.Activator
public static org.codehaus.stax2.osgi.Stax2OutputFactoryProvider outputFactoryProvider
Note: Stax2 implementation is provided by woodstox library which is a dependency of Jackson.
org.restlet.ext.jackson.internal.Activator
public static XMLInputFactory newInputFactory()
XMLInputFactory
according to the classpath.public static XMLOutputFactory newOutputFactory()
XMLInputFactory
according to the classpath.Copyright © 2005–2017. All rights reserved.