|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sdo.helper.XMLStreamHelperImpl
public class XMLStreamHelperImpl
Constructor Summary | |
---|---|
XMLStreamHelperImpl(commonj.sdo.helper.TypeHelper typeHelper)
|
Method Summary | |
---|---|
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(commonj.sdo.DataObject dataObject)
Creates and returns a XMLStreamReader that can be used to read a DataObject as a XML event stream. |
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(commonj.sdo.helper.XMLDocument document)
Creates and returns a XMLStreamReader that can be used to read an XMLDocument as a XML event stream. |
commonj.sdo.helper.XMLDocument |
load(javax.xml.stream.XMLStreamReader reader)
Creates and returns an XMLDocument from an XML input stream. |
protected commonj.sdo.helper.XMLDocument |
loadDocument(javax.xml.stream.XMLStreamReader reader)
|
commonj.sdo.DataObject |
loadObject(javax.xml.stream.XMLStreamReader reader)
Create a DataObject from an element in a XML stream. |
void |
save(commonj.sdo.helper.XMLDocument document,
javax.xml.stream.XMLStreamWriter writer)
Save a XMLDocument to an XML stream. |
void |
saveObject(commonj.sdo.DataObject sdo,
javax.xml.stream.XMLStreamWriter writer)
Save a DataObject to an XML stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLStreamHelperImpl(commonj.sdo.helper.TypeHelper typeHelper)
Method Detail |
---|
public commonj.sdo.helper.XMLDocument load(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, java.lang.IllegalStateException
XMLStreamHelper
load
in interface XMLStreamHelper
reader
- the stream to read
javax.xml.stream.XMLStreamException
- if there was a problem reading the stream
java.lang.IllegalStateException
- if the reader is not positioned on a START_DOCUMENT eventpublic void save(commonj.sdo.helper.XMLDocument document, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
XMLStreamHelper
save
in interface XMLStreamHelper
document
- the document to be writtenwriter
- the stream to write to
javax.xml.stream.XMLStreamException
- if there was a problem writing to the streampublic javax.xml.stream.XMLStreamReader createXMLStreamReader(commonj.sdo.helper.XMLDocument document) throws javax.xml.stream.XMLStreamException
XMLStreamHelper
createXMLStreamReader
in interface XMLStreamHelper
document
- the XMLDocument to be read
javax.xml.stream.XMLStreamException
public commonj.sdo.DataObject loadObject(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, java.lang.IllegalStateException
XMLStreamHelper
loadObject
in interface XMLStreamHelper
reader
- the stream to read
javax.xml.stream.XMLStreamException
- if there was a problem reading the stream
java.lang.IllegalStateException
- if the reader is not positioned on a START_ELEMENT eventpublic void saveObject(commonj.sdo.DataObject sdo, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
XMLStreamHelper
saveObject
in interface XMLStreamHelper
sdo
- the DataObject to be writtenwriter
- the stream to write to
javax.xml.stream.XMLStreamException
- if there was a problem writing to the streampublic javax.xml.stream.XMLStreamReader createXMLStreamReader(commonj.sdo.DataObject dataObject)
XMLStreamHelper
createXMLStreamReader
in interface XMLStreamHelper
dataObject
- the DataObject to be read
protected commonj.sdo.helper.XMLDocument loadDocument(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |