|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.provenance.pasoa.producer.InMemory
public class InMemory
An implementation of the XMLProducer interface backed by a StringBuffer. It does not check for any wellformedness of the XML. It is basically a data store.
| Field Summary | |
|---|---|
private int |
mSize
The initial size of the buffer. |
private StringBuffer |
mStore
The StringBuffer store. |
| Constructor Summary | |
|---|---|
InMemory()
The default constructor. |
|
InMemory(int size)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private StringBuffer mStore
private int mSize
| Constructor Detail |
|---|
public InMemory()
public InMemory(int size)
size - the intial number of characters it can store.| Method Detail |
|---|
public void add(String xml)
add in interface XMLProducerxml - the XML fragment to be added.public void clear()
clear in interface XMLProducer
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||