public interface FormatFilter
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleName() |
String |
getDescription() |
InputStream |
getDestinationStream(Item item,
InputStream source,
boolean verbose) |
String |
getFilteredName(String sourceName)
Get a filename for a newly created filtered bitstream
|
String |
getFormatString() |
void |
postProcessBitstream(Context c,
Item item,
Bitstream generatedBitstream)
Perform any post-processing of the generated bitstream *after* this
filter has already been run.
|
boolean |
preProcessBitstream(Context c,
Item item,
Bitstream source,
boolean verbose)
Perform any pre-processing of the source bitstream *before* the actual
filtering takes place in MediaFilterManager.processBitstream().
|
String getFilteredName(String sourceName)
sourceName - name of source bitstreamString getBundleName()
String getFormatString()
String getDescription()
InputStream getDestinationStream(Item item, InputStream source, boolean verbose) throws Exception
item - Itemsource - input streamverbose - verbosity flagException - if errorboolean preProcessBitstream(Context c, Item item, Bitstream source, boolean verbose) throws Exception
Return true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for any reason.
c - contextitem - item containing bitstream to processsource - source bitstream to be processedverbose - verbose modeException - if errorvoid postProcessBitstream(Context c, Item item, Bitstream generatedBitstream) throws Exception
Return true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for some reason.
c - contextitem - item containing bitstream to processgeneratedBitstream - the bitstream which was generated by
this filter.Exception - if errorCopyright © 2016 DuraSpace. All rights reserved.