Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Attachment Iterator

843830Jan 21 2003 — edited Feb 5 2003
Hi

I am trying to construct an attachment Iterator.

So when you create the itorator you cn call itor.next and that return the next "Part" that has an attachment, until all the attchments have been returned.

ITS BLOODY COMPLICATED!

Arrrh - its complicated because you need to be recursive (as in dumpPart in the JavaMail examples doc), and also remember where you are between each next() call.

I have had various attempts but failed - has anyone already done something like this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2003
Added on Jan 21 2003
2 comments
150 views