Package org.apache.cxf.attachment
Class As4LazyAttachmentCollection
- java.lang.Object
-
- org.apache.cxf.attachment.As4LazyAttachmentCollection
-
- All Implemented Interfaces:
Iterable<org.apache.cxf.message.Attachment>,Collection<org.apache.cxf.message.Attachment>
public class As4LazyAttachmentCollection extends Object implements Collection<org.apache.cxf.message.Attachment>
-
-
Constructor Summary
Constructors Constructor Description As4LazyAttachmentCollection(As4AttachmentDeserializer deserializer, int maxAttachmentCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(org.apache.cxf.message.Attachment arg0)booleanaddAll(Collection<? extends org.apache.cxf.message.Attachment> arg0)voidclear()booleancontains(Object arg0)booleancontainsAll(Collection<?> arg0)Map<String,javax.activation.DataHandler>createDataHandlerMap()List<org.apache.cxf.message.Attachment>getLoadedAttachments()booleanhasNext()booleanhasNext(boolean shouldLoadNew)Check for more attachments by attempting to deserialize the next attachment.booleanisEmpty()Iterator<org.apache.cxf.message.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.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 Detail
-
As4LazyAttachmentCollection
public As4LazyAttachmentCollection(As4AttachmentDeserializer deserializer, int maxAttachmentCount)
-
-
Method Detail
-
getLoadedAttachments
public List<org.apache.cxf.message.Attachment> getLoadedAttachments()
-
hasNext
public 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
-
hasNext
public boolean hasNext() throws IOException- Throws:
IOException
-
iterator
public Iterator<org.apache.cxf.message.Attachment> iterator()
- Specified by:
iteratorin interfaceCollection<org.apache.cxf.message.Attachment>- Specified by:
iteratorin interfaceIterable<org.apache.cxf.message.Attachment>
-
size
public int size()
- Specified by:
sizein interfaceCollection<org.apache.cxf.message.Attachment>
-
add
public boolean add(org.apache.cxf.message.Attachment arg0)
- Specified by:
addin interfaceCollection<org.apache.cxf.message.Attachment>
-
addAll
public boolean addAll(Collection<? extends org.apache.cxf.message.Attachment> arg0)
- Specified by:
addAllin interfaceCollection<org.apache.cxf.message.Attachment>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<org.apache.cxf.message.Attachment>
-
contains
public boolean contains(Object arg0)
- Specified by:
containsin interfaceCollection<org.apache.cxf.message.Attachment>
-
containsAll
public boolean containsAll(Collection<?> arg0)
- Specified by:
containsAllin interfaceCollection<org.apache.cxf.message.Attachment>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<org.apache.cxf.message.Attachment>
-
remove
public boolean remove(Object arg0)
- Specified by:
removein interfaceCollection<org.apache.cxf.message.Attachment>
-
removeAll
public boolean removeAll(Collection<?> arg0)
- Specified by:
removeAllin interfaceCollection<org.apache.cxf.message.Attachment>
-
retainAll
public boolean retainAll(Collection<?> arg0)
- Specified by:
retainAllin interfaceCollection<org.apache.cxf.message.Attachment>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<org.apache.cxf.message.Attachment>
-
toArray
public <T> T[] toArray(T[] arg0)
- Specified by:
toArrayin interfaceCollection<org.apache.cxf.message.Attachment>
-
-