Package io.protostuff
Class XmlIOFactoryUtil
- java.lang.Object
-
- io.protostuff.XmlIOFactoryUtil
-
public final class XmlIOFactoryUtil extends java.lang.Object
Resolves the targetXMLInputFactory
andXMLOutputFactory
to use.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static boolean
CHECK_PARENT
(package private) static java.lang.String
CONFIGURED_INPUT_FACTORY
(package private) static java.lang.String
CONFIGURED_OUTPUT_FACTORY
static javax.xml.stream.XMLInputFactory
DEFAULT_INPUT_FACTORY
The defaultXMLInputFactory
impl.static javax.xml.stream.XMLOutputFactory
DEFAULT_OUTPUT_FACTORY
The defaultXMLOutputFactory
impl.private static java.lang.String[]
INPUT_FACTORY_IMPLS
private static java.lang.String[]
OUTPUT_FACTORY_IMPLS
-
Constructor Summary
Constructors Modifier Constructor Description private
XmlIOFactoryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.Class<?>
loadClass(java.lang.String className, java.lang.Class<?> context, boolean checkParent)
Loads a class from the classloader; If not found, the classloader of thecontext
class specified will be used.(package private) static javax.xml.stream.XMLInputFactory
newXMLInputFactory()
(package private) static javax.xml.stream.XMLOutputFactory
newXMLOutputFactory()
-
-
-
Field Detail
-
CONFIGURED_INPUT_FACTORY
static final java.lang.String CONFIGURED_INPUT_FACTORY
-
CONFIGURED_OUTPUT_FACTORY
static final java.lang.String CONFIGURED_OUTPUT_FACTORY
-
CHECK_PARENT
static final boolean CHECK_PARENT
-
INPUT_FACTORY_IMPLS
private static final java.lang.String[] INPUT_FACTORY_IMPLS
-
OUTPUT_FACTORY_IMPLS
private static final java.lang.String[] OUTPUT_FACTORY_IMPLS
-
DEFAULT_INPUT_FACTORY
public static final javax.xml.stream.XMLInputFactory DEFAULT_INPUT_FACTORY
The defaultXMLInputFactory
impl.
-
DEFAULT_OUTPUT_FACTORY
public static final javax.xml.stream.XMLOutputFactory DEFAULT_OUTPUT_FACTORY
The defaultXMLOutputFactory
impl.
-
-
Method Detail
-
newXMLInputFactory
static javax.xml.stream.XMLInputFactory newXMLInputFactory()
-
newXMLOutputFactory
static javax.xml.stream.XMLOutputFactory newXMLOutputFactory()
-
loadClass
static java.lang.Class<?> loadClass(java.lang.String className, java.lang.Class<?> context, boolean checkParent)
Loads a class from the classloader; If not found, the classloader of thecontext
class specified will be used. If the flagcheckParent
is true, the classloader's parent is included in the lookup.
-
-