Package org.h2.dev.fs
Class FileShell
- java.lang.Object
-
- org.h2.util.Tool
-
- org.h2.dev.fs.FileShell
-
public class FileShell extends Tool
A shell tool that allows to list and manipulate files.
-
-
Constructor Summary
Constructors Constructor Description FileShell()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String... args)Options are case sensitive.voidrunTool(java.lang.String... args)Run the shell tool with the given command line settings.voidsetErr(java.io.PrintStream err)Sets the standard error stream.voidsetIn(java.io.InputStream in)Redirects the standard input.voidsetInReader(java.io.BufferedReader reader)Redirects the standard input.-
Methods inherited from class org.h2.util.Tool
getMainClassName, isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOption
-
-
-
-
Method Detail
-
main
public static void main(java.lang.String... args) throws java.sql.SQLExceptionOptions 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:
java.sql.SQLException- on failure
-
setErr
public void setErr(java.io.PrintStream err)
Sets the standard error stream.- Parameters:
err- the new standard error stream
-
setIn
public void setIn(java.io.InputStream in)
Redirects the standard input. By default, System.in is used.- Parameters:
in- the input stream to use
-
setInReader
public void setInReader(java.io.BufferedReader reader)
Redirects the standard input. By default, System.in is used.- Parameters:
reader- the input stream reader to use
-
-