Package io.protostuff

Class XmlIOFactoryUtil


  • public final class XmlIOFactoryUtil
    extends java.lang.Object
    Resolves the target XMLInputFactory and XMLOutputFactory to use.
    • 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 the context class specified will be used.
      (package private) static javax.xml.stream.XMLInputFactory newXMLInputFactory()  
      (package private) static javax.xml.stream.XMLOutputFactory newXMLOutputFactory()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 default XMLInputFactory impl.
      • DEFAULT_OUTPUT_FACTORY

        public static final javax.xml.stream.XMLOutputFactory DEFAULT_OUTPUT_FACTORY
        The default XMLOutputFactory impl.
    • Constructor Detail

      • XmlIOFactoryUtil

        private XmlIOFactoryUtil()
    • 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 the context class specified will be used. If the flag checkParent is true, the classloader's parent is included in the lookup.