public class AssetCollection extends java.lang.Object implements java.lang.Iterable<Asset>, java.lang.AutoCloseable
Asset
objects. You can use it for example to catalog a list of assets in one call
(see ItemCollection.catalogAssets(AssetCollection, String, String, java.util.EnumSet,
com.canto.cumulus.events.CatalogingListener)
).Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this collection and releases all acquired resources.
|
static AssetCollection |
create(Asset... assets)
Create a new collection from the given assets.
|
static AssetCollection |
create(java.util.List<Asset> assets)
Create a new collection from the given list of assets.
|
CumulusSession |
getCumulusSession()
Returns the current
CumulusSession object. |
java.util.Iterator<Asset> |
iterator() |
public void close()
close
in interface java.lang.AutoCloseable
public static AssetCollection create(java.util.List<Asset> assets)
assets
- list of assets to put into the new created instancepublic static AssetCollection create(Asset... assets)
assets
- assets to put into the new created instancepublic CumulusSession getCumulusSession()
CumulusSession
object.CumulusSession
objectwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.