|
StAX Mapper 1.0.0.Final | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMLMapper
An XML mapper. Allows the creation of extensible streaming XML parsers.
| Nested Class Summary | |
|---|---|
static class |
XMLMapper.Factory
A factory for creating an instance of XMLMapper. |
| Method Summary | |
|---|---|
void |
deparseDocument(XMLContentWriter contentWriter,
XMLStreamWriter streamWriter)
Deprecated. |
void |
deparseDocument(XMLElementWriter<?> writer,
Object rootObject,
XMLStreamWriter streamWriter)
Format the element writer's output on to an XML stream writer. |
void |
parseDocument(Object rootObject,
XMLStreamReader reader)
Parse a document. |
void |
registerRootAttribute(QName name,
XMLAttributeReader<?> reader)
Add a known root attribute which can be read by XMLExtendedStreamReader.handleAttribute(Object, int). |
void |
registerRootElement(QName name,
XMLElementReader<?> reader)
Add a known root element which can be read by XMLExtendedStreamReader.handleAny(Object). |
| Method Detail |
|---|
void registerRootElement(QName name,
XMLElementReader<?> reader)
XMLExtendedStreamReader.handleAny(Object).
name - the element namereader - the reader which handles the element
void registerRootAttribute(QName name,
XMLAttributeReader<?> reader)
XMLExtendedStreamReader.handleAttribute(Object, int).
name - the attribute namereader - the reader which handles the attribute
void parseDocument(Object rootObject,
XMLStreamReader reader)
throws XMLStreamException
rootObject - the root object to send inreader - the reader from which the document should be read
XMLStreamException - if an error occurs
void deparseDocument(XMLElementWriter<?> writer,
Object rootObject,
XMLStreamWriter streamWriter)
throws XMLStreamException
writer - the element writerrootObject - the root object to send instreamWriter - the stream writer
XMLStreamException - if an exception occurs
@Deprecated
void deparseDocument(XMLContentWriter contentWriter,
XMLStreamWriter streamWriter)
throws XMLStreamException
contentWriter - the content writerstreamWriter - the stream writer
XMLStreamException - if an exception occurs
|
StAX Mapper 1.0.0.Final | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||