|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormatFilter
Public interface for any class which transforms or converts content/bitstreams from one format to another. This interface should be implemented by any class which defines a "filter" to be run by the MediaFilterManager.
| Method Summary | |
|---|---|
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(). |
| Method Detail |
|---|
String getFilteredName(String sourceName)
sourceName - name of source bitstream
String getBundleName()
String getFormatString()
String getDescription()
InputStream getDestinationStream(InputStream source)
throws Exception
source - input stream
Exception
boolean 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 processed
Exception
void 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||