Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.collectors
Class BlobCollector

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Blob>
              extended by org.nuxeo.ecm.automation.core.util.BlobList
                  extended by 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

Constructor Summary
BlobCollector()
           
 
Method Summary
 void collect(OperationContext ctx, Blob obj)
          Collects a new partial result (the result of the last iteration step).
 BlobList getOutput()
          Gets the final output.
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

BlobCollector

public BlobCollector()
Method Detail

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>

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.