edu.isi.pegasus.planner.provenance.pasoa.producer
public class InMemory extends Object implements XMLProducer
| Modifier and Type | Field and Description |
|---|---|
private int |
mSize
The initial size of the buffer.
|
private StringBuffer |
mStore
The StringBuffer store.
|
| Constructor and Description |
|---|
InMemory()
The default constructor.
|
InMemory(int size)
The overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String xml)
Adds to the internal XML representation.
|
void |
clear()
Clears the internal state.
|
private void |
reset()
Resets the internal store.
|
String |
toXML()
Returns the interaction assertions as a XML blob.
|
void |
toXML(Writer writer)
Returns the xml description of the object.
|
private StringBuffer mStore
private int mSize
public InMemory()
public InMemory(int size)
size - the intial number of characters it can store.public void add(String xml)
add in interface XMLProducerxml - the XML fragment to be added.public void clear()
clear in interface XMLProducerpublic void toXML(Writer writer) throws IOException
toXML in interface XMLProducerwriter - is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.IOException - if something fishy happens to the stream.public String toXML() throws IOException
toXML in interface XMLProducerIOException - if something fishy happens to the stream.private void reset()