Class XMLReaderFactory

java.lang.Object
com.sun.xml.rpc.streaming.XMLReaderFactory
Direct Known Subclasses:
FastInfosetReaderFactoryImpl, XMLReaderFactoryImpl

public abstract class XMLReaderFactory extends Object

Define a factory API to enable pluggable XMLReader implementations.

Author:
JAX-RPC Development Team
See Also:
  • Constructor Details

    • XMLReaderFactory

      protected XMLReaderFactory()
  • Method Details

    • newInstance

      public static XMLReaderFactory newInstance()
      Obtain an instance of a factory.

      Since factories are stateless, only one copy of a factory exists and is returned to the application each time this method is called.

      The implementation class to be used can be overridden by setting the com.sun.xml.rpc.streaming.XMLReaderFactory system property.

    • createXMLReader

      public abstract XMLReader createXMLReader(InputStream in)
      Obtain an XMLReader on the given InputStream.
    • createXMLReader

      public abstract XMLReader createXMLReader(InputSource source)
      Obtain an XMLReader on the given InputSource.
    • createXMLReader

      public abstract XMLReader createXMLReader(InputStream in, boolean rejectDTDs)
      Obtain an XMLReader on the given InputStream.
    • createXMLReader

      public abstract XMLReader createXMLReader(InputSource source, boolean rejectDTDs)
      Obtain an XMLReader on the given InputSource.