/ Published in: Java
Use this class to iterate through lotus notes documents attachments in java! A LotusScript version could be useful also!
Expand |
Embed | Plain Text
import java.util.Iterator; import lotus.domino.*; private Session s; private Document doc; private Double count ; return count; } this.s = s; this.doc = doc; if (s!=null && doc !=null){ if (count.intValue() > 0){ attIterator = s.evaluate("@AttachmentNames", doc).iterator(); } } } public boolean hasNext() { return count.intValue() > 0 ? attIterator.hasNext(): false; } return count.intValue() > 0 ? attIterator.next(): null; } return count.intValue() > 0 ? attIterator.next().toString(): null; } public void remove() { if (count.intValue() > 0) attIterator.remove(); } StringBuilder sb = new StringBuilder(); if (count.intValue()>0){ while (hasNext()) { sb.append(nextAttName()); } } return sb.toString(); } }
You need to login to post a comment.
