Package org.apache.cxf.attachment
Class LazyAttachmentCollection
- java.lang.Object
- 
- org.apache.cxf.attachment.LazyAttachmentCollection
 
- 
- All Implemented Interfaces:
- Iterable<Attachment>,- Collection<Attachment>
 
 public class LazyAttachmentCollection extends Object implements Collection<Attachment> 
- 
- 
Constructor SummaryConstructors Constructor Description LazyAttachmentCollection(AttachmentDeserializer deserializer, int maxAttachmentCount)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Attachment arg0)booleanaddAll(Collection<? extends Attachment> arg0)voidclear()booleancontains(Object arg0)booleancontainsAll(Collection<?> arg0)Map<String,javax.activation.DataHandler>createDataHandlerMap()List<Attachment>getLoadedAttachments()booleanhasNext()booleanhasNext(boolean shouldLoadNew)Check for more attachments by attempting to deserialize the next attachment.booleanisEmpty()Iterator<Attachment>iterator()booleanremove(Object arg0)booleanremoveAll(Collection<?> arg0)booleanretainAll(Collection<?> arg0)intsize()Object[]toArray()<T> T[]toArray(T[] arg0)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Collectionequals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
 
- 
 
- 
- 
- 
Constructor Detail- 
LazyAttachmentCollectionpublic LazyAttachmentCollection(AttachmentDeserializer deserializer, int maxAttachmentCount) 
 
- 
 - 
Method Detail- 
getLoadedAttachmentspublic List<Attachment> getLoadedAttachments() 
 - 
hasNextpublic boolean hasNext(boolean shouldLoadNew) throws IOExceptionCheck for more attachments by attempting to deserialize the next attachment.- Parameters:
- shouldLoadNew- if false, the "loaded attachments" List will not be changed.
- Returns:
- there is more attachment or not
- Throws:
- IOException
 
 - 
hasNextpublic boolean hasNext() throws IOException- Throws:
- IOException
 
 - 
iteratorpublic Iterator<Attachment> iterator() - Specified by:
- iteratorin interface- Collection<Attachment>
- Specified by:
- iteratorin interface- Iterable<Attachment>
 
 - 
sizepublic int size() - Specified by:
- sizein interface- Collection<Attachment>
 
 - 
addpublic boolean add(Attachment arg0) - Specified by:
- addin interface- Collection<Attachment>
 
 - 
addAllpublic boolean addAll(Collection<? extends Attachment> arg0) - Specified by:
- addAllin interface- Collection<Attachment>
 
 - 
clearpublic void clear() - Specified by:
- clearin interface- Collection<Attachment>
 
 - 
containspublic boolean contains(Object arg0) - Specified by:
- containsin interface- Collection<Attachment>
 
 - 
containsAllpublic boolean containsAll(Collection<?> arg0) - Specified by:
- containsAllin interface- Collection<Attachment>
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- Collection<Attachment>
 
 - 
removepublic boolean remove(Object arg0) - Specified by:
- removein interface- Collection<Attachment>
 
 - 
removeAllpublic boolean removeAll(Collection<?> arg0) - Specified by:
- removeAllin interface- Collection<Attachment>
 
 - 
retainAllpublic boolean retainAll(Collection<?> arg0) - Specified by:
- retainAllin interface- Collection<Attachment>
 
 - 
toArraypublic Object[] toArray() - Specified by:
- toArrayin interface- Collection<Attachment>
 
 - 
toArraypublic <T> T[] toArray(T[] arg0) - Specified by:
- toArrayin interface- Collection<Attachment>
 
 
- 
 
-