| Modifier and Type | Field and Description |
|---|---|
| protected PrintStream | out
The output stream where this tool writes to. |
| private Properties |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public static boolean | |
| protected void | printNoDatabaseFilesFound(String
the directory or null dir, String the database name or null db)Print to the output stream that no database files have been found. |
| public abstract void | |
| public void | |
| protected void | |
| protected SQLException | Returns: this method never returns normallythe unsupported option option)Throw a SQLException saying this command line option is not supported. |
| protected SQLException | Returns: this method never returns normallythe unsupported option option)Throw a SQLException saying this command line option is not supported. |
| out | back to summary |
|---|---|
| protected PrintStream out The output stream where this tool writes to. | |
| resources | back to summary |
|---|---|
| private Properties resources | |
| Tool | back to summary |
|---|---|
| public Tool() | |
| getMainClassName | back to summary |
|---|---|
| protected String getMainClassName() Returns main class name of the tool.
| |
| isOption | back to summary |
|---|---|
| public static boolean isOption(String arg, String option) Check if the argument matches the option. If the argument starts with this option, but doesn't match, then an exception is thrown. | |
| printNoDatabaseFilesFound | back to summary |
|---|---|
| protected void printNoDatabaseFilesFound(String dir, String db) Print to the output stream that no database files have been found. | |
| runTool | back to summary |
|---|---|
| public abstract void runTool(String... args) throws SQLException Run the tool with the given output stream and arguments.
| |
| setOut | back to summary |
|---|---|
| public void setOut(PrintStream out) Sets the standard output stream.
| |
| showUsage | back to summary |
|---|---|
| protected void showUsage() Print the usage of the tool. This method reads the description from the resource file. | |
| showUsageAndThrowUnsupportedOption | back to summary |
|---|---|
| protected SQLException showUsageAndThrowUnsupportedOption(String option) throws SQLException Throw a SQLException saying this command line option is not supported.
| |
| throwUnsupportedOption | back to summary |
|---|---|
| protected SQLException throwUnsupportedOption(String option) throws SQLException Throw a SQLException saying this command line option is not supported.
| |