public abstract class XMLReaderFactory extends Object
Define a factory API to enable pluggable XMLReader implementations.
XMLReader| Modifier | Constructor and Description |
|---|---|
protected |
XMLReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract XMLReader |
createXMLReader(InputSource source)
Obtain an XMLReader on the given InputSource.
|
abstract XMLReader |
createXMLReader(InputSource source,
boolean rejectDTDs)
Obtain an XMLReader on the given InputSource.
|
abstract XMLReader |
createXMLReader(InputStream in)
Obtain an XMLReader on the given InputStream.
|
abstract XMLReader |
createXMLReader(InputStream in,
boolean rejectDTDs)
Obtain an XMLReader on the given InputStream.
|
static XMLReaderFactory |
newInstance()
Obtain an instance of a factory.
|
public static XMLReaderFactory newInstance()
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.
public abstract XMLReader createXMLReader(InputStream in)
public abstract XMLReader createXMLReader(InputSource source)
public abstract XMLReader createXMLReader(InputStream in, boolean rejectDTDs)
public abstract XMLReader createXMLReader(InputSource source, boolean rejectDTDs)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.