public abstract class ImageMagickThumbnailFilter extends MediaFilter
| Constructor and Description |
|---|
ImageMagickThumbnailFilter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBundleName() |
java.lang.String |
getDescription() |
java.lang.String |
getFilteredName(java.lang.String oldFilename)
Get a filename for a newly created filtered bitstream
|
java.lang.String |
getFormatString() |
static java.io.File |
getImageFile(java.io.File f,
int page) |
static java.io.File |
getThumbnailFile(java.io.File f) |
static java.io.File |
inputStreamToTempFile(java.io.InputStream source,
java.lang.String prefix,
java.lang.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 java.lang.String getFilteredName(java.lang.String oldFilename)
FormatFilteroldFilename - name of source bitstreampublic java.lang.String getBundleName()
public java.lang.String getFormatString()
public java.lang.String getDescription()
public static java.io.File inputStreamToTempFile(java.io.InputStream source,
java.lang.String prefix,
java.lang.String suffix)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.File getThumbnailFile(java.io.File f)
throws java.io.IOException,
java.lang.InterruptedException,
org.im4java.core.IM4JavaException
java.io.IOExceptionjava.lang.InterruptedExceptionorg.im4java.core.IM4JavaExceptionpublic static java.io.File getImageFile(java.io.File f,
int page)
throws java.io.IOException,
java.lang.InterruptedException,
org.im4java.core.IM4JavaException
java.io.IOExceptionjava.lang.InterruptedExceptionorg.im4java.core.IM4JavaExceptionpublic boolean preProcessBitstream(Context c, Item item, Bitstream source) throws java.lang.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 processedjava.lang.ExceptionCopyright © 2018 DuraSpace. All Rights Reserved.