|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.nntp.spi.PeekIterator
com.jivesoftware.forum.nntp.spi.DotIterator
public class DotIterator
Iterator that continues until the underlying iterator runs out or a message terminating dot is seen.
Constructor Summary | |
---|---|
DotIterator(java.util.Iterator itr)
Create an iterator that wraps the given one. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if there are more elements that can be returned from calls to next() or peek() using both the end of the underlying iterator and/or the occurance of a dot on a line by itself. |
java.lang.Object |
next()
Returns the next element and moves the iterator forward. |
java.lang.Object |
peek()
Peeks into the next element without iterating. |
Methods inherited from class com.jivesoftware.forum.nntp.spi.PeekIterator |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DotIterator(java.util.Iterator itr)
itr
- the iterator to wrap.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class PeekIterator
public java.lang.Object next()
PeekIterator
next
in interface java.util.Iterator
next
in class PeekIterator
public java.lang.Object peek()
PeekIterator
peek
in class PeekIterator
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |