public class MediaFilterManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_PLUGIN_SEPARATOR |
static String |
FILTER_PREFIX |
static String |
INPUT_FORMATS_SUFFIX |
static String |
MEDIA_FILTER_PLUGINS_KEY |
| Constructor and Description |
|---|
MediaFilterManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyFiltersAllItems(Context c) |
static void |
applyFiltersCollection(Context c,
Collection collection) |
static void |
applyFiltersCommunity(Context c,
Community community) |
static void |
applyFiltersItem(Context c,
Item item) |
static boolean |
filterBitstream(Context c,
Item myItem,
Bitstream myBitstream)
Attempt to filter a bitstream.
|
static boolean |
filterItem(Context c,
Item myItem)
Iterate through the item's bitstreams in the ORIGINAL bundle, applying
filters if possible.
|
static Item |
getCurrentItem()
Return the item that is currently being processed/filtered
by the MediaFilterManager.
|
static boolean |
inSkipList(String identifier)
Check whether or not to skip processing the given identifier.
|
static void |
main(String[] argv) |
static boolean |
processBitstream(Context c,
Item item,
Bitstream source,
FormatFilter formatFilter)
A utility class that calls the virtual methods
from the current MediaFilter class.
|
public static final String MEDIA_FILTER_PLUGINS_KEY
public static final String FILTER_PREFIX
public static final String INPUT_FORMATS_SUFFIX
public static final String FILTER_PLUGIN_SEPARATOR
public static void applyFiltersAllItems(Context c) throws Exception
Exceptionpublic static void applyFiltersCommunity(Context c, Community community) throws Exception
Exceptionpublic static void applyFiltersCollection(Context c, Collection collection) throws Exception
Exceptionpublic static void applyFiltersItem(Context c, Item item) throws Exception
Exceptionpublic static boolean filterItem(Context c, Item myItem) throws Exception
Exceptionpublic static boolean filterBitstream(Context c, Item myItem, Bitstream myBitstream) throws Exception
Exceptionpublic static boolean processBitstream(Context c, Item item, Bitstream source, FormatFilter formatFilter) throws Exception
c - contextitem - item containing bitstream to processsource - source bitstream to processformatFilter - FormatFilter to perform filteringExceptionpublic static Item getCurrentItem()
This allows FormatFilters to retrieve the Item object in case they need access to item-level information for their format transformations/conversions.
public static boolean inSkipList(String identifier)
identifier - identifier (handle) of a community, collection or itemCopyright © 2013 DuraSpace. All Rights Reserved.