public interface FormatFilter
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBundleName() |
java.lang.String |
getDescription() |
java.io.InputStream |
getDestinationStream(java.io.InputStream source) |
java.lang.String |
getFilteredName(java.lang.String sourceName)
Get a filename for a newly created filtered bitstream
|
java.lang.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().
|
java.lang.String getFilteredName(java.lang.String sourceName)
sourceName - name of source bitstreamjava.lang.String getBundleName()
java.lang.String getFormatString()
java.lang.String getDescription()
java.io.InputStream getDestinationStream(java.io.InputStream source)
throws java.lang.Exception
source - input streamjava.lang.Exceptionboolean preProcessBitstream(Context c, Item item, Bitstream source) throws java.lang.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 processedjava.lang.Exceptionvoid postProcessBitstream(Context c, Item item, Bitstream generatedBitstream) throws java.lang.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.java.lang.ExceptionCopyright © 2018 DuraSpace. All Rights Reserved.