Package org.apache.cxf.attachment
Class LazyAttachmentCollection
java.lang.Object
org.apache.cxf.attachment.LazyAttachmentCollection
- All Implemented Interfaces:
Iterable<Attachment>,Collection<Attachment>
-
Constructor Summary
ConstructorsConstructorDescriptionLazyAttachmentCollection(AttachmentDeserializer deserializer, int maxAttachmentCount) -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
LazyAttachmentCollection
-
-
Method Details
-
getLoadedAttachments
-
hasNext
Check 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 interfaceCollection<Attachment>- Specified by:
iteratorin interfaceIterable<Attachment>
-
size
public int size()- Specified by:
sizein interfaceCollection<Attachment>
-
add
- Specified by:
addin interfaceCollection<Attachment>
-
addAll
- Specified by:
addAllin interfaceCollection<Attachment>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Attachment>
-
contains
- Specified by:
containsin interfaceCollection<Attachment>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Attachment>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Attachment>
-
remove
- Specified by:
removein interfaceCollection<Attachment>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Attachment>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Attachment>
-
toArray
- Specified by:
toArrayin interfaceCollection<Attachment>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Attachment>
-
createDataHandlerMap
-