public class DefaultUsageFormatter2 extends java.lang.Object implements UsageFormatter2
| Constructor and Description |
|---|
DefaultUsageFormatter2(boolean withCommandDetails) |
DefaultUsageFormatter2(boolean withCommandDetails,
int lineLength) |
DefaultUsageFormatter2(boolean withCommandDetails,
int lineLength,
LineLengthDetector lineLengthDetector) |
| Modifier and Type | Method and Description |
|---|---|
void |
format(java.io.PrintStream output,
CmdlineModel cmdlineModel) |
protected void |
formatCommands(java.io.PrintStream output,
java.util.List<CommandHandle> commands,
java.lang.String title,
java.util.ResourceBundle resourceBundle) |
protected void |
formatOptions(java.io.PrintStream output,
java.util.List<OptionHandle> options,
java.lang.String title,
java.util.ResourceBundle resourceBundle) |
protected void |
formatParameter(java.io.PrintStream output,
OptionHandle parameter,
java.lang.String title,
java.util.ResourceBundle resourceBundle) |
static void |
formatTable(java.io.PrintStream output,
java.util.List<java.lang.String[]> twoColData,
int prefix,
int space,
int maxLineLength) |
protected int |
getLineLength() |
static void |
mkSpace(java.io.PrintStream output,
int space) |
protected java.lang.String |
translate(java.util.ResourceBundle resourceBundle,
java.lang.String string) |
protected java.lang.String[] |
translate(java.util.ResourceBundle resourceBundle,
java.lang.String[] strings) |
static void |
wrap(java.io.PrintStream output,
java.lang.String text,
int nextLinePrefix,
int lineLength) |
public DefaultUsageFormatter2(boolean withCommandDetails,
int lineLength,
LineLengthDetector lineLengthDetector)
public DefaultUsageFormatter2(boolean withCommandDetails,
int lineLength)
public DefaultUsageFormatter2(boolean withCommandDetails)
protected int getLineLength()
protected java.lang.String translate(java.util.ResourceBundle resourceBundle,
java.lang.String string)
protected java.lang.String[] translate(java.util.ResourceBundle resourceBundle,
java.lang.String[] strings)
public void format(java.io.PrintStream output,
CmdlineModel cmdlineModel)
format in interface UsageFormatter2protected void formatParameter(java.io.PrintStream output,
OptionHandle parameter,
java.lang.String title,
java.util.ResourceBundle resourceBundle)
protected void formatOptions(java.io.PrintStream output,
java.util.List<OptionHandle> options,
java.lang.String title,
java.util.ResourceBundle resourceBundle)
protected void formatCommands(java.io.PrintStream output,
java.util.List<CommandHandle> commands,
java.lang.String title,
java.util.ResourceBundle resourceBundle)
public static void mkSpace(java.io.PrintStream output,
int space)
public static void formatTable(java.io.PrintStream output,
java.util.List<java.lang.String[]> twoColData,
int prefix,
int space,
int maxLineLength)
public static void wrap(java.io.PrintStream output,
java.lang.String text,
int nextLinePrefix,
int lineLength)