public class ShellScriptExecutor
extends java.lang.Object
implements java.io.Closeable, java.io.Flushable
See scriptella/driver/shell/ShellDriverITest.xml for usage example
PropertiesSubstitutor| Constructor and Description |
|---|
ShellScriptExecutor(java.io.Writer out,
ShellConnectionParameters params)
Creates an executor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
execute(java.io.Reader reader,
ParametersCallback pc,
AbstractConnection.StatementCounter counter)
Parses a script from read, expands properties and produces the output.
|
void |
flush() |
public ShellScriptExecutor(java.io.Writer out,
ShellConnectionParameters params)
out - writer for output.params - connection parameters.public void execute(java.io.Reader reader,
ParametersCallback pc,
AbstractConnection.StatementCounter counter)
reader - script content.pc - parameters for substitution.counter - statements counter.public void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © Copyright 2006-2019 The Scriptella Project Team.