|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cyberneko.pull.util.EventQueue
public class EventQueue
A general purpose queue for pull parser event objects.
| Field Summary | |
|---|---|
protected XMLEvent |
fHead
The head of the queue. |
protected int |
fSize
The size of the queue. |
protected XMLEvent |
fTail
The tail of the queue. |
| Constructor Summary | |
|---|---|
EventQueue()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the queue. |
XMLEvent |
dequeue()
Removes and returns an event from the queue, or null if the queue is empty. |
void |
enqueue(XMLEvent event)
Adds an event to the queue. |
boolean |
isEmpty()
Returns true if the queue is empty. |
int |
size()
Returns the size of the queue. |
java.lang.String |
toString()
Returns a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int fSize
protected XMLEvent fHead
protected XMLEvent fTail
| Constructor Detail |
|---|
public EventQueue()
| Method Detail |
|---|
public int size()
public void clear()
public boolean isEmpty()
public void enqueue(XMLEvent event)
public XMLEvent dequeue()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||