public class NativeCmdImageTranscode extends ImageTranscoder
c:/programme/graphic/IrfanView/i_view32.exe ?i /convert=?o
Constructor and Description |
---|
NativeCmdImageTranscode(java.lang.String[] inputFormats,
java.lang.String outputFormat,
java.lang.String cmd)
Constructs a new image transcode.
|
NativeCmdImageTranscode(java.lang.String inputFormat,
java.lang.String outputFormat,
java.lang.String cmd)
Constructs a new image transcode.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doTranscode(java.io.InputStream input,
java.io.OutputStream destination,
ImageMetaData descriptor)
Do transcode an image from an input stream to an output stream.
|
protected void |
doTranscode(java.lang.String inputFile,
java.lang.String outputFile,
ImageMetaData descriptor)
Do transcode an image from an input file to an output file.
|
java.lang.String |
getCommand()
Gets the command that is executed by this transcode when an image
must be converted.
|
java.lang.String[] |
getInputFormats()
Gets the input format of images that are accepted by this trancoder.
|
java.lang.String |
getOutputFormat()
Gets the output format of the produced image.
|
boolean |
isReady()
Checks if this transcode is ready to run.
|
java.lang.String |
toString() |
canTranscodeFile, canTranscodeFormat, checkImageSize, getMaximumSize, getTypeOfFile, setMaximumSize, transcodeBytes, transcodeFile, transcodeFile
public NativeCmdImageTranscode(java.lang.String inputFormat, java.lang.String outputFormat, java.lang.String cmd)
inputFormat
- Input format that is supported by this transcoder.outputFormat
- Output format that is produced by this transcoder.cmd
- Command template.public NativeCmdImageTranscode(java.lang.String[] inputFormats, java.lang.String outputFormat, java.lang.String cmd)
inputFormats
- Array of input formats that are supported by this transcoder.outputFormat
- Output format that is produced by this transcoder.cmd
- Command template.public java.lang.String getOutputFormat()
ImageTranscoder
getOutputFormat
in class ImageTranscoder
public java.lang.String[] getInputFormats()
ImageTranscoder
getInputFormats
in class ImageTranscoder
public java.lang.String getCommand()
public boolean isReady()
ImageTranscoder
isReady
in class ImageTranscoder
true
public java.lang.String toString()
toString
in class java.lang.Object
protected void doTranscode(java.lang.String inputFile, java.lang.String outputFile, ImageMetaData descriptor)
ImageTranscoder
doTranscode
in class ImageTranscoder
inputFile
- Input file.outputFile
- Output file.descriptor
- ImageDescriptorprotected void doTranscode(java.io.InputStream input, java.io.OutputStream destination, ImageMetaData descriptor)
ImageTranscoder
doTranscode
in class ImageTranscoder
input
- InputStreamdestination
- OutputStreamdescriptor
- ImageDescriptor© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.