public interface FormatFilter
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleName() |
String |
getDescription() |
InputStream |
getDestinationStream(InputStream source) |
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)
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(InputStream source) throws Exception
source - input streamExceptionboolean preProcessBitstream(Context c, Item item, Bitstream source) 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 processedExceptionvoid 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.ExceptionCopyright © 2014 DuraSpace. All Rights Reserved.