Package com.sun.xml.rpc.streaming
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:
XMLReader
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMLReaderFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract XMLReadercreateXMLReader(InputStream in)Obtain an XMLReader on the given InputStream.abstract XMLReadercreateXMLReader(InputStream in, boolean rejectDTDs)Obtain an XMLReader on the given InputStream.abstract XMLReadercreateXMLReader(InputSource source)Obtain an XMLReader on the given InputSource.abstract XMLReadercreateXMLReader(InputSource source, boolean rejectDTDs)Obtain an XMLReader on the given InputSource.static XMLReaderFactorynewInstance()Obtain an instance of a factory.
-
-
-
Method Detail
-
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.
-
-