Package org.basex.util
Class Main
java.lang.Object
org.basex.util.Main
This is an interface for classes with main methods and command-line arguments.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringheader()Returns a header string for command-line information.protected abstract voidParses the command-line arguments, specified by the user.protected static IOFileGenerates a stop file for the specified class and port.abstract Stringusage()Returns a usage string for command-line information.
-
Constructor Details
-
Main
Constructor.- Parameters:
args- command-line arguments
-
-
Method Details
-
stopFile
Generates a stop file for the specified class and port.- Parameters:
clazz- class nameport- port- Returns:
- stop file
-
header
Returns a header string for command-line information.- Returns:
- header string
-
usage
Returns a usage string for command-line information.- Returns:
- usage string
-
parseArgs
Parses the command-line arguments, specified by the user.- Throws:
IOException- I/O exception
-