public class XmlReader extends Object
| Constructor and Description |
|---|
XmlReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(StAXHandler handler) |
List<StAXHandler> |
getHandlers() |
boolean |
isStripNamespaces()
when true, all namespace information is stripped from the reported events.
|
void |
read(InputStream in)
Consume the byte stream, generating events for the handlers.
|
void |
read(net.sf.saxon.om.NodeInfo node) |
void |
read(Reader reader)
Consume the character stream, generating events for the handlers.
|
void |
read(XMLStreamReader in)
Consume the XML stream, generating events for the handlers.
|
void |
reset() |
void |
setStripNamespaces(boolean stripNamespaces) |
public void read(Reader reader) throws XMLStreamException
reader - source of xml StAX eventsXMLStreamException - if the reader doespublic void read(InputStream in) throws XMLStreamException
in - source of xml StAX eventsXMLStreamException - if the reader doespublic void read(net.sf.saxon.om.NodeInfo node)
throws XMLStreamException
XMLStreamExceptionpublic void addHandler(StAXHandler handler)
public List<StAXHandler> getHandlers()
public void read(XMLStreamReader in) throws XMLStreamException
in - source of xml StAX eventsXMLStreamException - if the reader doespublic void reset()
public boolean isStripNamespaces()
public void setStripNamespaces(boolean stripNamespaces)
Copyright © 2013. All Rights Reserved.