public abstract class XMLInputStreamFactory extends Object
XMLInputStream,
ElementFilter| Modifier and Type | Method and Description |
|---|---|
abstract BufferedXMLInputStream |
newBufferedInputStream(XMLInputStream inputStream)
Deprecated.
Create a buffered XMLInputStream from an XMLInputStream
|
abstract XMLInputStream |
newCanonicalInputStream(XMLInputStream inputStream)
Deprecated.
Wrap a canonical stream around an XMLInputStream
|
abstract XMLInputStream |
newDTDAwareInputStream(InputStream inputStream)
Deprecated.
Create a stream that reads and understands a DTD, can be used to canoncalize
an XML source
|
abstract XMLInputStream |
newDTDAwareInputStream(Reader reader)
Deprecated.
Create a stream that reads and understands a DTD, can be used to canoncalize
an XML source
|
abstract XMLInputStream |
newFragmentInputStream(InputStream inputStream,
Map namespaces)
Deprecated.
Create a stream can parse fragments
|
abstract XMLInputStream |
newFragmentInputStream(Reader reader,
Map namespaces)
Deprecated.
Create a stream can parse fragments
|
abstract XMLInputStream |
newInputStream(Document doc)
Deprecated.
Create an XMLInputStream that reads from a DOM document
|
abstract XMLInputStream |
newInputStream(Document document,
ElementFilter filter)
Deprecated.
Create a filtered XMLInputStream that reads from a DOM document
|
abstract XMLInputStream |
newInputStream(File file)
Deprecated.
Create a new XMLInputStream from a file
|
abstract XMLInputStream |
newInputStream(File file,
ElementFilter filter)
Deprecated.
Create a filtered XMLInputStream from a file
|
abstract XMLInputStream |
newInputStream(InputStream stream)
Deprecated.
Create a new XMLInputStream from a stream
|
abstract XMLInputStream |
newInputStream(InputStream stream,
ElementFilter filter)
Deprecated.
Create a filtered XMLInputStream from a stream
|
abstract XMLInputStream |
newInputStream(Node node)
Deprecated.
Create an XMLInputStream that reads from a DOM node
|
abstract XMLInputStream |
newInputStream(Node node,
ElementFilter filter)
Deprecated.
Create a filtered XMLInputStream that reads from a DOM node
|
abstract XMLInputStream |
newInputStream(Reader reader)
Deprecated.
Create a new XMLInputStream from a reader
|
abstract XMLInputStream |
newInputStream(Reader reader,
ElementFilter filter)
Deprecated.
Create a filtered XMLInputStream from a reader
|
abstract XMLInputStream |
newInputStream(XMLInputStream inputStream,
ElementFilter filter)
Deprecated.
Create a filtered XMLInputStream from an XMLInputStream
|
abstract XMLInputStream |
newInputStream(XMLPullReader reader,
InputSource input)
Deprecated.
Create a new XMLInputStream from an InputSource
|
abstract XMLInputStream |
newInputStream(XMLPullReader reader,
InputSource input,
ElementFilter filter)
Deprecated.
Create a filtered XMLInputStream from an InputSource read by the XMLPullReader
|
static XMLInputStreamFactory |
newInstance()
Deprecated.
Create a new instance of the factory.
|
abstract void |
setFilter(ElementFilter filter)
Deprecated.
Allows you to set a default filter for the factory that will wrap all streams created from this factory
|
public static XMLInputStreamFactory newInstance()
public abstract XMLInputStream newInputStream(File file) throws XMLStreamException
file - the XML file to read fromXMLStreamExceptionpublic abstract XMLInputStream newInputStream(InputStream stream) throws XMLStreamException
stream - the XML stream to read fromXMLStreamExceptionpublic abstract XMLInputStream newInputStream(Reader reader) throws XMLStreamException
reader - the XML reader to read fromXMLStreamExceptionpublic abstract XMLInputStream newInputStream(XMLPullReader reader, InputSource input) throws XMLStreamException
reader - the XMLPullReader that reads the inputsourceinput - the InputSource that the XMLReader reads fromXMLStreamExceptionpublic abstract XMLInputStream newInputStream(Document doc) throws XMLStreamException
doc - the DOM document to read fromXMLStreamExceptionpublic abstract XMLInputStream newInputStream(Node node) throws XMLStreamException
node - the DOM node to read fromXMLStreamExceptionpublic abstract XMLInputStream newInputStream(XMLPullReader reader, InputSource input, ElementFilter filter) throws XMLStreamException
reader - the XMLPullReader that reads the inputsourceinput - the InputSource that the XMLReader reads fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic abstract XMLInputStream newInputStream(Document document, ElementFilter filter) throws XMLStreamException
document - the DOM document to read fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic abstract XMLInputStream newInputStream(Node node, ElementFilter filter) throws XMLStreamException
node - the DOM node to read fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic abstract XMLInputStream newInputStream(File file, ElementFilter filter) throws XMLStreamException
file - the XML file to read fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic abstract XMLInputStream newInputStream(InputStream stream, ElementFilter filter) throws XMLStreamException
stream - the XML stream to read fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic abstract XMLInputStream newInputStream(Reader reader, ElementFilter filter) throws XMLStreamException
reader - the reader to read fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic abstract XMLInputStream newInputStream(XMLInputStream inputStream, ElementFilter filter) throws XMLStreamException
inputStream - the stream to wrapfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic abstract BufferedXMLInputStream newBufferedInputStream(XMLInputStream inputStream) throws XMLStreamException
inputStream - the stream to bufferXMLStreamExceptionpublic abstract XMLInputStream newCanonicalInputStream(XMLInputStream inputStream) throws XMLStreamException
inputStream - the stream to bufferXMLStreamExceptionpublic abstract XMLInputStream newDTDAwareInputStream(InputStream inputStream) throws XMLStreamException
inputStream - the stream to bufferXMLStreamExceptionpublic abstract XMLInputStream newDTDAwareInputStream(Reader reader) throws XMLStreamException
reader - the reader to read fromXMLStreamExceptionpublic abstract XMLInputStream newFragmentInputStream(InputStream inputStream, Map namespaces) throws XMLStreamException
inputStream - the stream to bufferXMLStreamExceptionpublic abstract XMLInputStream newFragmentInputStream(Reader reader, Map namespaces) throws XMLStreamException
reader - the reader to read fromXMLStreamExceptionpublic abstract void setFilter(ElementFilter filter) throws XMLStreamException
filter - the default filterXMLStreamException