Package io.protostuff

Class XmlIOFactoryUtil

java.lang.Object
io.protostuff.XmlIOFactoryUtil

public final class XmlIOFactoryUtil extends Object
Resolves the target XMLInputFactory and XMLOutputFactory to use.
  • Field Details

    • CONFIGURED_INPUT_FACTORY

      static final String CONFIGURED_INPUT_FACTORY
    • CONFIGURED_OUTPUT_FACTORY

      static final String CONFIGURED_OUTPUT_FACTORY
    • CHECK_PARENT

      static final boolean CHECK_PARENT
    • INPUT_FACTORY_IMPLS

      private static final String[] INPUT_FACTORY_IMPLS
    • OUTPUT_FACTORY_IMPLS

      private static final String[] OUTPUT_FACTORY_IMPLS
    • DEFAULT_INPUT_FACTORY

      public static final XMLInputFactory DEFAULT_INPUT_FACTORY
      The default XMLInputFactory impl.
    • DEFAULT_OUTPUT_FACTORY

      public static final XMLOutputFactory DEFAULT_OUTPUT_FACTORY
      The default XMLOutputFactory impl.
  • Constructor Details

    • XmlIOFactoryUtil

      private XmlIOFactoryUtil()
  • Method Details

    • newXMLInputFactory

      static XMLInputFactory newXMLInputFactory()
    • newXMLOutputFactory

      static XMLOutputFactory newXMLOutputFactory()
    • loadClass

      static Class<?> loadClass(String className, 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.