Package org.apache.cxf.attachment
Class LazyAttachmentCollection
java.lang.Object
org.apache.cxf.attachment.LazyAttachmentCollection
- All Implemented Interfaces:
- Iterable<Attachment>,- Collection<Attachment>
- 
Constructor SummaryConstructorsConstructorDescriptionLazyAttachmentCollection(AttachmentDeserializer deserializer, int maxAttachmentCount) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanadd(Attachment arg0) booleanaddAll(Collection<? extends Attachment> arg0) voidclear()booleanbooleancontainsAll(Collection<?> arg0) booleanhasNext()booleanhasNext(boolean shouldLoadNew) Check for more attachments by attempting to deserialize the next attachment.booleanisEmpty()iterator()booleanbooleanremoveAll(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, waitMethods inherited from interface java.util.Collectionequals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
- 
Constructor Details- 
LazyAttachmentCollection
 
- 
- 
Method Details- 
getLoadedAttachments
- 
hasNextCheck 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
 
- 
hasNext- Throws:
- IOException
 
- 
iterator- Specified by:
- iteratorin interface- Collection<Attachment>
- Specified by:
- iteratorin interface- Iterable<Attachment>
 
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<Attachment>
 
- 
add- Specified by:
- addin interface- Collection<Attachment>
 
- 
addAll- Specified by:
- addAllin interface- Collection<Attachment>
 
- 
clearpublic void clear()- Specified by:
- clearin interface- Collection<Attachment>
 
- 
contains- Specified by:
- containsin interface- Collection<Attachment>
 
- 
containsAll- Specified by:
- containsAllin interface- Collection<Attachment>
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- Collection<Attachment>
 
- 
remove- Specified by:
- removein interface- Collection<Attachment>
 
- 
removeAll- Specified by:
- removeAllin interface- Collection<Attachment>
 
- 
retainAll- Specified by:
- retainAllin interface- Collection<Attachment>
 
- 
toArray- Specified by:
- toArrayin interface- Collection<Attachment>
 
- 
toArraypublic <T> T[] toArray(T[] arg0) - Specified by:
- toArrayin interface- Collection<Attachment>
 
- 
createDataHandlerMap
 
-