|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlux.xml.XmlReader
public class XmlReader
Reads XML and passes events to a brigade of StAXHandlers. Essentially turns StAX into push model parser a'la SAX.
| Constructor Summary | |
|---|---|
XmlReader()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlReader()
| Method Detail |
|---|
public void read(Reader reader)
throws XMLStreamException
reader - source of xml StAX events
XMLStreamException - if the reader does
public void read(InputStream in)
throws XMLStreamException
in - source of xml StAX events
XMLStreamException - if the reader does
public 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 events
XMLStreamException - if the reader doespublic void reset()
public boolean isStripNamespaces()
public void setStripNamespaces(boolean stripNamespaces)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||