Package org.h2.dev.fs
Class FileShell
java.lang.Object
org.h2.util.Tool
org.h2.dev.fs.FileShell
A shell tool that allows to list and manipulate files.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidOptions are case sensitive.voidRun the shell tool with the given command line settings.voidsetErr(PrintStream err) Sets the standard error stream.voidsetIn(InputStream in) Redirects the standard input.voidsetInReader(BufferedReader reader) Redirects the standard input.Methods inherited from class org.h2.util.Tool
getMainClassName, isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOption
-
Constructor Details
-
FileShell
public FileShell()
-
-
Method Details
-
main
Options are case sensitive.
Multiple commands may be executed if separated by ;Supported options [-help] or [-?] Print the list of options [-verbose] Print stack traces [-run ...] Execute the given commands and exit - Parameters:
args- the command line arguments- Throws:
SQLException- on failure
-
setErr
Sets the standard error stream.- Parameters:
err- the new standard error stream
-
setIn
Redirects the standard input. By default, System.in is used.- Parameters:
in- the input stream to use
-
setInReader
Redirects the standard input. By default, System.in is used.- Parameters:
reader- the input stream reader to use
-
runTool
Run the shell tool with the given command line settings.- Specified by:
runToolin classTool- Parameters:
args- the command line settings- Throws:
SQLException- on failure
-