org.dspace.app.mediafilter
Class PDFFilter
java.lang.Object
org.dspace.app.mediafilter.MediaFilter
org.dspace.app.mediafilter.PDFFilter
- All Implemented Interfaces:
- FormatFilter
public class PDFFilter
- extends MediaFilter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFFilter
public PDFFilter()
getFilteredName
public String getFilteredName(String oldFilename)
- Description copied from interface:
FormatFilter
- Get 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 bitstreamformat
getDescription
public String getDescription()
- Returns:
- String description
getDestinationStream
public InputStream getDestinationStream(InputStream source)
throws Exception
- Parameters:
source - source input stream
- Returns:
- InputStream the resulting input stream
- Throws:
Exception
Copyright © 2010 The DSpace Foundation. All Rights Reserved.