|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.quarrel.file.ElementCollector
Responsible for building an intermediate model from the contents of an InputStream. The StreamParser class will read the stream and feed the contents to ElementCollector.
Constructor Summary | |
ElementCollector()
|
Method Summary | |
void |
add(java.lang.String line)
Adds a line to the current compartment |
java.util.Iterator |
elements()
Returns an iterator over the set of elements that have been collector. |
void |
finish()
Brings the state of the collector to a completed state. |
void |
pop()
Pop the current compartment off the stack. |
void |
push(java.lang.String name)
Pushes a new compartment into the collector using the specified name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ElementCollector()
Method Detail |
public java.util.Iterator elements()
public void push(java.lang.String name)
name
- the name of the compartment to be addedpublic void finish()
public void add(java.lang.String line)
line
- the String to add to the current compartmentpublic void pop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |