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, setScriptGeneratoraddProcessEventListener, addProcessListener, finished, getGlobalSearchPath, getPID, getProcessTask, getSearchPath, isAsyncMode, removeProcessEventListener, searchForCmd, setAsyncMode, setGlobalSearchPath, setInputProvider, setPID, setPIDCounterpublic 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.ProcessStarterpublic void setErrorConsumer(@Nonnull org.im4java.process.ErrorConsumer pErrorConsumer)
setErrorConsumer in class org.im4java.process.ProcessStarterprotected int run(@Nonnull LinkedList<String> pArgs) throws Exception
GMExecutor to execute the command.run in class org.im4java.process.ProcessStarterException@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.ProcessStarterpSearchPath - not usedCopyright © 2013. All Rights Reserved.