| Modifier and Type | Field and Description |
|---|---|
| public static final Entity | |
| public static final Entity | |
| public static final Entity | |
| public static final Entity | |
| public final String |
| Modifier and Type | Method and Description |
|---|---|
| public int | charCount()
Overrides jdk. Returns the number of characters of plain text content in this object. |
| pack-priv static String | Returns: the string with all of the HTML characters escapedthe string to escape s)Escapes the special HTML characters in a given string using the appropriate entities. |
| pack-priv static void | escapeHtmlChars(CharSequence
the string s, StringBuilder the string builder sb)Escapes the special HTML characters in a given string using the appropriate entities, appending the results into a string builder. |
| private static void | |
| public boolean | isEmpty()
Implements abstract jdk. Returns true if the content is empty. |
| public boolean | isPhrasingContent()
Overrides jdk. Returns true if the content is "phrasing content". |
| public static Entity | Returns: the entitythe name, or numeric value name)Creates an entity with a given name or numeric value. |
| public boolean | write(Writer writer, String newline, boolean atNewline)
Implements abstract jdk. Writes content to a writer, using a given newline sequence, which should be
either |
| AMPERSAND | back to summary |
|---|---|
| public static final Entity AMPERSAND | |
| GREATER_THAN | back to summary |
|---|---|
| public static final Entity GREATER_THAN | |
| LESS_THAN | back to summary |
|---|---|
| public static final Entity LESS_THAN | |
| NO_BREAK_SPACE | back to summary |
|---|---|
| public static final Entity NO_BREAK_SPACE | |
| text | back to summary |
|---|---|
| public final String text | |
| Entity | back to summary |
|---|---|
| private Entity(String text) | |
| charCount | back to summary |
|---|---|
| public int charCount() Overrides jdk. Doc from jdk. Returns the number of characters of plain text content in this object.
| |
| escapeHtmlChars | back to summary |
|---|---|
| pack-priv static String escapeHtmlChars(CharSequence s) Escapes the special HTML characters in a given string using the appropriate entities.
| |
| escapeHtmlChars | back to summary |
|---|---|
| pack-priv static void escapeHtmlChars(CharSequence s, StringBuilder sb) Escapes the special HTML characters in a given string using the appropriate entities, appending the results into a string builder.
| |
| escapeHtmlChars | back to summary |
|---|---|
| private static void escapeHtmlChars(String s, int start, StringBuilder sb) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract jdk. Doc from jdk. Returns true if the content is empty.
| |
| isPhrasingContent | back to summary |
|---|---|
| public boolean isPhrasingContent() Overrides jdk. Doc from jdk. Returns true if the content is "phrasing content". Phrasing content is content that may appear in a paragraph, such as text, or certain HTML elements.
| |
| of | back to summary |
|---|---|
| public static Entity of(CharSequence name) Creates an entity with a given name or numeric value.
| |
| write | back to summary |
|---|---|
| public boolean write(Writer writer, String newline, boolean atNewline) throws IOException Implements abstract jdk. Doc from jdk. Writes content to a writer, using a given newline sequence, which should be
either
| |