org.nuxeo.ecm.automation.core.collectors
Class BlobCollector
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Blob>
org.nuxeo.ecm.automation.core.util.BlobList
org.nuxeo.ecm.automation.core.collectors.BlobCollector
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Blob>, Collection<Blob>, List<Blob>, RandomAccess, OutputCollector<Blob,BlobList>
public class BlobCollector
- extends BlobList
- implements OutputCollector<Blob,BlobList>
This implementation collect Blob
objects and return them as a
BlobList
object.
You may use this to automatically iterate over iterable inputs in operation
methods that return a Blob
object.
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
BlobCollector
public BlobCollector()
collect
public void collect(OperationContext ctx,
Blob obj)
throws OperationException
- Description copied from interface:
OutputCollector
- Collects a new partial result (the result of the last iteration step).
- Specified by:
collect
in interface OutputCollector<Blob,BlobList>
- Throws:
OperationException
getOutput
public BlobList getOutput()
- Description copied from interface:
OutputCollector
- Gets the final output. This is usually a list or set of collected objects.
- Specified by:
getOutput
in interface OutputCollector<Blob,BlobList>
Copyright © 2011 Nuxeo SAS. All Rights Reserved.