public class LazyAttachmentCollection extends Object implements Collection<Attachment>
| Constructor and Description | 
|---|
| LazyAttachmentCollection(AttachmentDeserializer deserializer,
                        int maxAttachmentCount) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(Attachment arg0) | 
| boolean | addAll(Collection<? extends Attachment> arg0) | 
| void | clear() | 
| boolean | contains(Object arg0) | 
| boolean | containsAll(Collection<?> arg0) | 
| Map<String,DataHandler> | createDataHandlerMap() | 
| List<Attachment> | getLoadedAttachments() | 
| boolean | hasNext() | 
| boolean | hasNext(boolean shouldLoadNew)Check for more attachments by attempting to deserialize the next attachment. | 
| boolean | isEmpty() | 
| Iterator<Attachment> | iterator() | 
| boolean | remove(Object arg0) | 
| boolean | removeAll(Collection<?> arg0) | 
| boolean | retainAll(Collection<?> arg0) | 
| int | size() | 
| Object[] | toArray() | 
| <T> T[] | toArray(T[] arg0) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic LazyAttachmentCollection(AttachmentDeserializer deserializer, int maxAttachmentCount)
public List<Attachment> getLoadedAttachments()
public boolean hasNext(boolean shouldLoadNew)
                throws IOException
shouldLoadNew - if false, the "loaded attachments" List will not be changed.IOExceptionpublic boolean hasNext()
                throws IOException
IOExceptionpublic Iterator<Attachment> iterator()
iterator in interface Iterable<Attachment>iterator in interface Collection<Attachment>public int size()
size in interface Collection<Attachment>public boolean add(Attachment arg0)
add in interface Collection<Attachment>public boolean addAll(Collection<? extends Attachment> arg0)
addAll in interface Collection<Attachment>public void clear()
clear in interface Collection<Attachment>public boolean contains(Object arg0)
contains in interface Collection<Attachment>public boolean containsAll(Collection<?> arg0)
containsAll in interface Collection<Attachment>public boolean isEmpty()
isEmpty in interface Collection<Attachment>public boolean remove(Object arg0)
remove in interface Collection<Attachment>public boolean removeAll(Collection<?> arg0)
removeAll in interface Collection<Attachment>public boolean retainAll(Collection<?> arg0)
retainAll in interface Collection<Attachment>public Object[] toArray()
toArray in interface Collection<Attachment>public <T> T[] toArray(T[] arg0)
toArray in interface Collection<Attachment>public Map<String,DataHandler> createDataHandlerMap()
Apache CXF