public class GMBatchCommand
extends org.im4java.core.ImageCommand
Note: Does not support asynchronous mode; Does not support BufferedImage as output.
Constructor and Description |
---|
GMBatchCommand(GMExecutor executor,
String command)
Construct a new instance of
GMBatchCommand that uses given executor to execute specified command. |
Modifier and Type | Method and Description |
---|---|
protected int |
run(LinkedList<String> pArgs)
This implementation uses
GMExecutor to execute the command. |
void |
setErrorConsumer(org.im4java.process.ErrorConsumer pErrorConsumer) |
void |
setOutputConsumer(org.im4java.process.OutputConsumer pOutputConsumer) |
void |
setSearchPath(String pSearchPath)
Deprecated.
|
consumeError, createScript, createScript, createScript, finished, getCommand, getErrorText, getProcessTask, run, setCommand, setDefaultScriptGenerator, setScriptGenerator
addProcessEventListener, addProcessListener, finished, getGlobalSearchPath, getPID, getProcessTask, getSearchPath, isAsyncMode, removeProcessEventListener, searchForCmd, setAsyncMode, setGlobalSearchPath, setInputProvider, setPID, setPIDCounter
public GMBatchCommand(@Nonnull GMExecutor executor, @Nonnull String command)
GMBatchCommand
that uses given executor to execute specified command.executor
- executor to execute the commandcommand
- command to be executed.public void setOutputConsumer(@Nonnull org.im4java.process.OutputConsumer pOutputConsumer)
setOutputConsumer
in class org.im4java.process.ProcessStarter
public void setErrorConsumer(@Nonnull org.im4java.process.ErrorConsumer pErrorConsumer)
setErrorConsumer
in class org.im4java.process.ProcessStarter
protected int run(@Nonnull LinkedList<String> pArgs) throws Exception
GMExecutor
to execute the command.run
in class org.im4java.process.ProcessStarter
Exception
@Deprecated public void setSearchPath(String pSearchPath)
ImageCommand
, GMBatchCommand
uses GMExecutor
instead of
starting a new GraphicsMagick process. This makes setSearchPath(String)
method useless. Calling this
method always result in UnsupportedOperationException
.setSearchPath
in class org.im4java.process.ProcessStarter
pSearchPath
- not usedCopyright © 2013. All Rights Reserved.