Klasse TextBuilder
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.Content
org.jdrupes.mdoclet.internal.doclets.formats.html.markup.TextBuilder
Class for generating string content for HTML tags of javadoc output.
The content is mutable to the extent that additional content may be added. Newlines are always represented by \n. Any special HTML characters will be escaped if and when the content is written out.
-
Konstruktorübersicht
KonstruktorBeschreibungConstructor to construct StringContent object.TextBuilder
(CharSequence initialContent) Constructor to construct StringContent object with some initial content. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungadd
(CharSequence strContent) Adds content for the StringContent object.int
Gibt the number of characters of plain text content in this object zurück.boolean
isEmpty()
Returns true if the content is empty.toString()
Returns a string representation of the content.boolean
Writes content to a writer, using a given newline sequence, which should be either \n or the platform line separator.Von Klasse geerbte Methoden org.jdrupes.mdoclet.internal.doclets.toolkit.Content
add, addAll, isDiscardable
-
Konstruktordetails
-
TextBuilder
public TextBuilder()Constructor to construct StringContent object. -
TextBuilder
Constructor to construct StringContent object with some initial content.- Parameter:
initialContent
- initial content for the object
-
-
Methodendetails
-
add
Adds content for the StringContent object. -
isEmpty
Beschreibung aus Klasse kopiert:Content
Returns true if the content is empty. -
charCount
Beschreibung aus Klasse kopiert:Content
Gibt the number of characters of plain text content in this object zurück. -
toString
Beschreibung aus Klasse kopiert:Content
Returns a string representation of the content.Newlines are represented by \n.
-
write
Beschreibung aus Klasse kopiert:Content
Writes content to a writer, using a given newline sequence, which should be either \n or the platform line separator.- Angegeben von:
write
in KlasseContent
- Parameter:
out
- the writernewline
- the newline sequence to useatNewline
- whether the writer has just written a newline- Gibt zurück:
- whether the writer has just written a newline
- Löst aus:
IOException
- if an error occurs while writing the output
-