|
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.UUBeginIterator
public class UUBeginIterator
Iterator that continues until the underlying iterator runs out or a uuencoding 'begin' token is seen.
Constructor Summary | |
---|---|
UUBeginIterator(java.util.Iterator itr)
Create an iterator that wraps the given one. |
Method Summary | |
---|---|
java.lang.String |
getHeader()
Returns the uuencode header line if the last call to hasNext() returned false. |
java.lang.String |
getName()
Returns the name of the uuencoded file if the last call to hasNext() returned false. |
boolean |
hasNext()
Tests whether another line exists before the uuencoding start section. |
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 UUBeginIterator(java.util.Iterator itr)
itr
- the iterator to wrapMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getHeader()
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 |