public abstract class ImageMagickThumbnailFilter extends MediaFilter implements SelfRegisterInputFormats
| Constructor and Description |
|---|
ImageMagickThumbnailFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleName() |
String |
getDescription() |
String |
getFilteredName(String oldFilename)
Get a filename for a newly created filtered bitstream
|
String |
getFormatString() |
static File |
getImageFile(File f,
int page) |
String[] |
getInputDescriptions() |
String[] |
getInputExtensions() |
String[] |
getInputMIMETypes() |
static File |
getThumbnailFile(File f) |
static File |
inputStreamToTempFile(InputStream source,
String prefix,
String suffix) |
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().
|
postProcessBitstreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestinationStreampublic String getFilteredName(String oldFilename)
FormatFiltergetFilteredName in interface FormatFilteroldFilename - name of source bitstreampublic String getBundleName()
getBundleName in interface FormatFilterpublic String getFormatString()
getFormatString in interface FormatFilterpublic String getDescription()
getDescription in interface FormatFilterpublic static File inputStreamToTempFile(InputStream source, String prefix, String suffix) throws IOException
IOExceptionpublic static File getThumbnailFile(File f) throws IOException, InterruptedException, org.im4java.core.IM4JavaException
IOExceptionInterruptedExceptionorg.im4java.core.IM4JavaExceptionpublic static File getImageFile(File f, int page) throws IOException, InterruptedException, org.im4java.core.IM4JavaException
IOExceptionInterruptedExceptionorg.im4java.core.IM4JavaExceptionpublic boolean preProcessBitstream(Context c, Item item, Bitstream source) throws Exception
MediaFilterReturn true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for any reason.
preProcessBitstream in interface FormatFilterpreProcessBitstream in class MediaFilterc - contextitem - item containing bitstream to processsource - source bitstream to be processedExceptionpublic String[] getInputMIMETypes()
getInputMIMETypes in interface SelfRegisterInputFormatspublic String[] getInputDescriptions()
getInputDescriptions in interface SelfRegisterInputFormatspublic String[] getInputExtensions()
getInputExtensions in interface SelfRegisterInputFormatsCopyright © 2014 DuraSpace. All Rights Reserved.