Package org.apache.cxf.attachment
Class LazyAttachmentCollection
java.lang.Object
org.apache.cxf.attachment.LazyAttachmentCollection
- All Implemented Interfaces:
Iterable<Attachment>
,Collection<Attachment>
-
Constructor Summary
ConstructorDescriptionLazyAttachmentCollection
(AttachmentDeserializer deserializer, int maxAttachmentCount) -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(Attachment arg0) boolean
addAll
(Collection<? extends Attachment> arg0) void
clear()
boolean
boolean
containsAll
(Collection<?> arg0) boolean
hasNext()
boolean
hasNext
(boolean shouldLoadNew) Check for more attachments by attempting to deserialize the next attachment.boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> arg0) boolean
retainAll
(Collection<?> arg0) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] arg0) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
iterator
in interfaceCollection<Attachment>
- Specified by:
iterator
in interfaceIterable<Attachment>
-
size
public int size()- Specified by:
size
in interfaceCollection<Attachment>
-
add
- Specified by:
add
in interfaceCollection<Attachment>
-
addAll
- Specified by:
addAll
in interfaceCollection<Attachment>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Attachment>
-
contains
- Specified by:
contains
in interfaceCollection<Attachment>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Attachment>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Attachment>
-
remove
- Specified by:
remove
in interfaceCollection<Attachment>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<Attachment>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<Attachment>
-
toArray
- Specified by:
toArray
in interfaceCollection<Attachment>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArray
in interfaceCollection<Attachment>
-
createDataHandlerMap
-