Package org.dspace.app.mediafilter
Class ExcelFilter
- java.lang.Object
-
- org.dspace.app.mediafilter.MediaFilter
-
- org.dspace.app.mediafilter.ExcelFilter
-
- All Implemented Interfaces:
FormatFilter
public class ExcelFilter extends MediaFilter
-
-
Constructor Summary
Constructors Constructor Description ExcelFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBundleName()StringgetDescription()InputStreamgetDestinationStream(Item item, InputStream source, boolean verbose)Read the source stream and produce the filtered content.StringgetFilteredName(String oldFilename)Get a filename for a newly created filtered bitstreamStringgetFormatString()-
Methods inherited from class org.dspace.app.mediafilter.MediaFilter
postProcessBitstream, preProcessBitstream
-
-
-
-
Method Detail
-
getFilteredName
public String getFilteredName(String oldFilename)
Description copied from interface:FormatFilterGet a filename for a newly created filtered bitstream- Parameters:
oldFilename- name of source bitstream- Returns:
- filename generated by the filter - for example, document.pdf becomes document.pdf.txt
-
getBundleName
public String getBundleName()
- Returns:
- String bundle name
-
getFormatString
public String getFormatString()
- Returns:
- String bitstream format
-
getDescription
public String getDescription()
- Returns:
- String description
-
getDestinationStream
public InputStream getDestinationStream(Item item, InputStream source, boolean verbose) throws Exception
Description copied from interface:FormatFilterRead the source stream and produce the filtered content.- Parameters:
item- itemsource- source input streamverbose- verbose mode- Returns:
- InputStream the resulting input stream
- Throws:
Exception- if error
-
-