Package org.im4java.core
Class ImageCommand
java.lang.Object
org.im4java.process.ProcessStarter
org.im4java.core.ImageCommand
- All Implemented Interfaces:
ErrorConsumer
- Direct Known Subclasses:
CompositeCmd
,ConvertCmd
,DcrawCmd
,DisplayCmd
,ExiftoolCmd
,GraphicsMagickCmd
,IdentifyCmd
,ImageMagickCmd
,JpegtranCmd
,MogrifyCmd
,MontageCmd
,UFRawCmd
This class implements the processing of image operations. It replaces
placeholders within the argument-stack and passes all arguments to the
generic run-method of ProcessStarter.
-
Field Summary
Fields inherited from class org.im4java.process.ProcessStarter
BUFFER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ImageCommand
(String... pCommands) Constructor setting the commands. -
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeError
(InputStream pInputStream) This method just saves the stderr-output into an internal field.void
Execute the command (replace given placeholders).void
setCommand
(String... pCommands) Set the command.Methods inherited from class org.im4java.process.ProcessStarter
addProcessListener, getIInputProvider, getIProcessListener, isAsyncMode, run, setAsyncMode, setErrorConsumer, setInputProvider, setOutputConsumer, startProcess, waitForProcess
-
Constructor Details
-
ImageCommand
public ImageCommand()Constructor. -
ImageCommand
Constructor setting the commands.
-
-
Method Details
-
setCommand
Set the command. -
run
public void run(Operation pOperation, Object... images) throws IOException, InterruptedException, IM4JavaException Execute the command (replace given placeholders). -
consumeError
This method just saves the stderr-output into an internal field.- Specified by:
consumeError
in interfaceErrorConsumer
- Throws:
IOException
- See Also:
-