public interface HelpAppendable extends Appendable
The representation of the semantics is dependent upon the format being output. For example, the plain text output for a paragraph may print the text followed by two line breaks, while an XHTML output would print the text surrounded by <p> and </p>.
Note the Appendable documentation on the topics of Unicode and threading, these comments also apply here.
| Modifier and Type | Method | Description |
|---|---|---|
default void |
appendFormat(String format,
Object... args) |
Appends a formatted string using the specified format string and arguments.
|
void |
appendHeader(int level,
CharSequence text) |
Appends a header.
|
void |
appendList(boolean ordered,
Collection<CharSequence> list) |
Appends a list.
|
void |
appendParagraph(CharSequence paragraph) |
Appends a paragraph.
|
default void |
appendParagraphFormat(String format,
Object... args) |
Appends a formatted string as a paragraph.
|
void |
appendTable(TableDefinition table) |
Appends a table.
|
void |
appendTitle(CharSequence title) |
Appends a title.
|
append, append, appenddefault void appendFormat(String format, Object... args) throws IOException
Short-hand for calling:
helpAppendable.append.(String.format(format, args));
format - The format string for String.format(String, Object...).args - Arguments to String.format(String, Object...).IllegalFormatException - See String.format(String, Object...).IOException - If an output error occurs.String.format(String, Object...),
Formatter,
Appendable.append(CharSequence)void appendHeader(int level, CharSequence text) throws IOException
level - the level of the header. This is equivalent to the "1", "2", or "3" in the HTML "h1", "h2", "h3" tags.text - the text for the header, null is a noop.IOException - If an output error occurs.void appendList(boolean ordered, Collection<CharSequence> list) throws IOException
ordered - true if the list should be ordered.list - the list to write, null is a noop.IOException - If an output error occurs.void appendParagraph(CharSequence paragraph) throws IOException
paragraph - the paragraph to write, null is a noop.IOException - If an output error occurs.default void appendParagraphFormat(String format, Object... args) throws IOException
helpAppendable.appendParagraph.(String.format(format, args));
format - The format string for String.format(String, Object...).args - Arguments to String.format(String, Object...).IllegalFormatException - See String.format(String, Object...).IOException - If an output error occurs.String.format(String, Object...),
Formatter,
Appendable.append(CharSequence)void appendTable(TableDefinition table) throws IOException
table - the table definition to write, null is a noop.IOException - If an output error occurs.void appendTitle(CharSequence title) throws IOException
title - the title to write, null is a noop.IOException - If an output error occurs.Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository