|
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.MimeBodyPartIterator
public class MimeBodyPartIterator
An iterator of MIME body parts, it scans an underlying Iterator of Strings comprising the RFC822 email message. Each call to next() forwards the underlying iterator to beginning of the next MIME body part and returns an iterator that will return the Strings making up just that body part. The MIME iterator continues to exhaust the message contents until it reaches the message body terminating '.'.
Constructor Summary | |
---|---|
MimeBodyPartIterator(java.util.Iterator bodyIterator,
java.lang.String boundaryMarker)
Create an iterator using the given body iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if there is another body string left in this iterator. |
boolean |
hasNextBodyPart()
Returns true if there is another body part following this one. |
java.lang.Object |
next()
Return an iterator over the lines (String objects) of the next body part. |
Methods inherited from class com.jivesoftware.forum.nntp.spi.PeekIterator |
---|
peek, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimeBodyPartIterator(java.util.Iterator bodyIterator, java.lang.String boundaryMarker)
bodyIterator
- Iterator of the String lines making up the message body.boundaryMarker
- the MIME boundary marker used to detect
body part divisions.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class PeekIterator
public boolean hasNextBodyPart()
public java.lang.Object next()
next
in interface java.util.Iterator
next
in class PeekIterator
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |