|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.datamodel.xml.StaxRecordWriter
public class StaxRecordWriter
StAX based Id writer. Should give better performance than the DOM based IdBuilder.
Constructor Summary | |
---|---|
StaxRecordWriter()
create default instance. |
|
StaxRecordWriter(boolean printPretty)
|
Method Summary | |
---|---|
protected static java.lang.String |
cleanText(java.lang.String text)
|
void |
writeRecord(javax.xml.stream.XMLStreamWriter staxWriter,
Record record)
Append a rec:Record element describing the given record to the given XML stream. |
void |
writeRecordList(javax.xml.stream.XMLStreamWriter staxWriter,
java.lang.Iterable<Record> records)
Append a rec:RecordList element describing the given record list to the given XML stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaxRecordWriter()
public StaxRecordWriter(boolean printPretty)
printPretty
- set to true to add newlines after each element tag.Method Detail |
---|
public void writeRecord(javax.xml.stream.XMLStreamWriter staxWriter, Record record) throws javax.xml.stream.XMLStreamException
staxWriter
- target XML streamrecord
- the record to write
javax.xml.stream.XMLStreamException
- StAX errorpublic void writeRecordList(javax.xml.stream.XMLStreamWriter staxWriter, java.lang.Iterable<Record> records) throws javax.xml.stream.XMLStreamException
staxWriter
- target XML streamrecords
- the record list to transform.
javax.xml.stream.XMLStreamException
- StAX errorprotected static java.lang.String cleanText(java.lang.String text)
text
- input text (XML)
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |