| Modifier and Type | Field and Description |
|---|---|
| private DocumentFactory | factory
Reference to the DocumentFactory used to build DOM4J nodes. |
| private XMLInputFactory | inputFactory
A StAX input factory, used to construct streams from IO streams. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | STAXEventReader(DocumentFactory
The DocumentFactory to use when constructing DOM4J nodes, or
factory)null if a default should be used.Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public Attribute | Returns: The Attribute constructed from the provided Attribute event.DOCUMENT ME! elem, Attribute The Attribute event from which to construct the new DOM4J
Attribute. attr)Constructs a new DOM4J Attribute from the provided StAX Attribute event. |
| public CharacterData | Returns: The Text or CDATA object constructed from the provided Characters event.The Characters event from which to construct the new DOM4J
Text or CDATA object. characters)Constructs a new DOM4J Text or CDATA object from the provided Characters event. |
| public Comment | Returns: The Comment constructed from the provided Comment event.The Comment event from which to construct the new DOM4J
Comment. comment)Constructs a new DOM4J Comment from the provided StAX Comment event. |
| public Element | Returns: The Element constructed from the provided StartElement event.The StartElement event from which to construct the new DOM4J
Element. startEvent)Constructs a new DOM4J Element from the provided StartElement event. |
| public Entity | Returns: The Entity constructed from the provided EntityReference event.The EntityReference event from which to construct the new
DOM4J Entity. entityRef)Constructs a new DOM4J Entity from the provided StAX EntityReference event. |
| public Namespace | Returns: The Namespace constructed from the provided Namespace event.The Namespace event from which to construct the new DOM4J
Namespace. ns)Constructs a new DOM4J Namespace from the provided StAX Namespace event. |
| public ProcessingInstruction | Returns: The ProcessingInstruction constructed from the provided ProcessingInstruction event.The ProcessingInstruction event from which to construct the
new DOM4J ProcessingInstruction. pi)Constructs a new DOM4J ProcessingInstruction from the provided StAX ProcessingInstruction event. |
| public QName | Returns: The newly constructed DOM4J QName.The JAXP QName from which to create a DOM4J QName. qname)Constructs a new DOM4J QName from the provided JAXP QName. |
| public Attribute | Returns: The Attribute that was read from the stream.The event stream from which to read the Attribute. reader)Constructs a DOM4J Attribute from the provided event stream. |
| public CharacterData | Returns: The Text or CDATA that was read from the stream.The event stream from which to read the Text or CDATA. reader)Constructs a DOM4J Text or CDATA section from the provided event stream. |
| public Comment | Returns: The Comment that was read from the stream.The event stream from which to read the Comment. reader)Constructs a DOM4J Comment from the provided event stream. |
| public Document | Returns: The Document that was read from the stream.The I/O stream from which the Document will be read. is)Constructs a StAX event stream from the provided I/O stream and reads a DOM4J document from it. |
| public Document | Returns: The Document that was read from the stream.The character stream from which the Document will be read. reader)Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it. |
| public Document | Returns: The Document that was read from the stream.The I/O stream from which the Document will be read. is, String A system id used to resolve entities. systemId)Constructs a StAX event stream from the provided I/O stream and reads a DOM4J document from it. |
| public Document | Returns: The Document that was read from the stream.The character stream from which the Document will be read. reader, String A system id used to resolve entities. systemId)Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it. |
| public Document | Returns: TheDocumentthat was read from the stream.The event stream from which to read the reader)Document.Reads a DOM4J |
| public Element | Returns: The Element that was read from the stream.The event stream from which to read the Element. eventReader)Reads a DOM4J Element from the provided event stream. |
| public Entity | Returns: Theorg.that was read from the stream.The event stream from which to read the reader)EntityReference.Constructs a DOM4J Entity from the provided event stream. |
| public Namespace | Returns: The Namespace that was read from the stream.The event stream from which to read the Namespace. reader)Constructs a DOM4J Namespace from the provided event stream. |
| public Node | Returns: A DOM4JNodeconstructed from the read events.The reader from which events will be read. reader)Reads a |
| public ProcessingInstruction | Returns: The ProcessingInstruction that was read from the stream.The event stream from which to read the ProcessingInstruction. reader)Constructs a DOM4J ProcessingInstruction from the provided event stream. |
| public void | setDocumentFactory(DocumentFactory
The DocumentFactory to use when constructing DOM4J nodes, or
documentFactory)null if a default should be used.Sets the DocumentFactory to be used when constructing DOM4J nodes. |
| factory | back to summary |
|---|---|
| private DocumentFactory factory Reference to the DocumentFactory used to build DOM4J nodes. | |
| inputFactory | back to summary |
|---|---|
| private XMLInputFactory inputFactory A StAX input factory, used to construct streams from IO streams. | |
| STAXEventReader | back to summary |
|---|---|
| public STAXEventReader() Constructs a default | |
| STAXEventReader | back to summary |
|---|---|
| public STAXEventReader(DocumentFactory factory) Constructs a
| |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(Element elem, Attribute attr) Constructs a new DOM4J Attribute from the provided StAX Attribute event. | |
| createCharacterData | back to summary |
|---|---|
| public CharacterData createCharacterData(Characters characters) Constructs a new DOM4J Text or CDATA object from the provided Characters event.
| |
| createComment | back to summary |
|---|---|
| public Comment createComment(Comment comment) Constructs a new DOM4J Comment from the provided StAX Comment event. | |
| createElement | back to summary |
|---|---|
| public Element createElement(StartElement startEvent) Constructs a new DOM4J Element from the provided StartElement event. All attributes and namespaces will be added to the returned element.
| |
| createEntity | back to summary |
|---|---|
| public Entity createEntity(EntityReference entityRef) Constructs a new DOM4J Entity from the provided StAX EntityReference event.
| |
| createNamespace | back to summary |
|---|---|
| public Namespace createNamespace(Namespace ns) Constructs a new DOM4J Namespace from the provided StAX Namespace event. | |
| createProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction createProcessingInstruction(ProcessingInstruction pi) Constructs a new DOM4J ProcessingInstruction from the provided StAX ProcessingInstruction event.
| |
| createQName | back to summary |
|---|---|
| public QName createQName(QName qname) Constructs a new DOM4J QName from the provided JAXP QName. | |
| readAttribute | back to summary |
|---|---|
| public Attribute readAttribute(XMLEventReader reader) throws XMLStreamException Constructs a DOM4J Attribute from the provided event stream. The stream
must be positioned before an
| |
| readCharacters | back to summary |
|---|---|
| public CharacterData readCharacters(XMLEventReader reader) throws XMLStreamException Constructs a DOM4J Text or CDATA section from the provided event stream.
The stream must be positioned before a
| |
| readComment | back to summary |
|---|---|
| public Comment readComment(XMLEventReader reader) throws XMLStreamException Constructs a DOM4J Comment from the provided event stream. The stream
must be positioned before a
| |
| readDocument | back to summary |
|---|---|
| public Document readDocument(InputStream is) throws XMLStreamException Constructs a StAX event stream from the provided I/O stream and reads a DOM4J document from it.
| |
| readDocument | back to summary |
|---|---|
| public Document readDocument(Reader reader) throws XMLStreamException Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it.
| |
| readDocument | back to summary |
|---|---|
| public Document readDocument(InputStream is, String systemId) throws XMLStreamException Constructs a StAX event stream from the provided I/O stream and reads a DOM4J document from it.
| |
| readDocument | back to summary |
|---|---|
| public Document readDocument(Reader reader, String systemId) throws XMLStreamException Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it.
| |
| readDocument | back to summary |
|---|---|
| public Document readDocument(XMLEventReader reader) throws XMLStreamException Reads a DOM4J
| |
| readElement | back to summary |
|---|---|
| public Element readElement(XMLEventReader eventReader) throws XMLStreamException Reads a DOM4J Element from the provided event stream. The stream must be
positioned before an
| |
| readEntityReference | back to summary |
|---|---|
| public Entity readEntityReference(XMLEventReader reader) throws XMLStreamException Constructs a DOM4J Entity from the provided event stream. The stream must
be positioned before an
| |
| readNamespace | back to summary |
|---|---|
| public Namespace readNamespace(XMLEventReader reader) throws XMLStreamException Constructs a DOM4J Namespace from the provided event stream. The stream
must be positioned before a
| |
| readNode | back to summary |
|---|---|
| public Node readNode(XMLEventReader reader) throws XMLStreamException Reads a
Pre-Conditions : The stream must be positioned before an
event other than an
| |
| readProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction readProcessingInstruction(XMLEventReader reader) throws XMLStreamException Constructs a DOM4J ProcessingInstruction from the provided event stream.
The stream must be positioned before a
| |
| setDocumentFactory | back to summary |
|---|---|
| public void setDocumentFactory(DocumentFactory documentFactory) Sets the DocumentFactory to be used when constructing DOM4J nodes.
| |