Package org.basex.util
Class Main
- java.lang.Object
-
- org.basex.util.Main
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
header()
Returns a header string for command-line information.protected abstract void
parseArgs()
Parses the command-line arguments, specified by the user.protected static IOFile
stopFile(Class<?> clazz, int port)
Generates a stop file for the specified class and port.abstract String
usage()
Returns a usage string for command-line information.
-
-
-
Constructor Detail
-
Main
protected Main(String[] args)
Constructor.- Parameters:
args
- command-line arguments
-
-
Method Detail
-
stopFile
protected static IOFile stopFile(Class<?> clazz, int port)
Generates a stop file for the specified class and port.- Parameters:
clazz
- class nameport
- port- Returns:
- stop file
-
header
public abstract String header()
Returns a header string for command-line information.- Returns:
- header string
-
usage
public abstract String usage()
Returns a usage string for command-line information.- Returns:
- usage string
-
parseArgs
protected abstract void parseArgs() throws IOException
Parses the command-line arguments, specified by the user.- Throws:
IOException
- I/O exception
-
-