SMILA (incubation) API documentation

org.eclipse.smila.datamodel.id.stax
Class IdWriter

java.lang.Object
  extended by org.eclipse.smila.datamodel.id.stax.IdWriter

public class IdWriter
extends java.lang.Object

StAX based Id writer. Should give better performance than the DOM based IdBuilder.

Author:
jschumacher

Constructor Summary
IdWriter()
          create default instance.
IdWriter(boolean printPretty)
           
 
Method Summary
 void writeId(javax.xml.stream.XMLStreamWriter staxWriter, Id id)
          write an Id to my XML stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdWriter

public IdWriter()
create default instance.


IdWriter

public IdWriter(boolean printPretty)
Parameters:
printPretty - set to true to add newlines after each element tag.
Method Detail

writeId

public void writeId(javax.xml.stream.XMLStreamWriter staxWriter,
                    Id id)
             throws javax.xml.stream.XMLStreamException
write an Id to my XML stream.

Parameters:
staxWriter - target XML stream
id - the Id to write
Throws:
javax.xml.stream.XMLStreamException - StAX error

SMILA (incubation) API documentation