Klasse RawHtml
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.Content
org.jdrupes.mdoclet.internal.doclets.formats.html.markup.RawHtml
Class for generating raw HTML content to be added to HTML pages of javadoc output.
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic RawHtml
Creates HTML for an HTML CDATA section.protected static int
charCount
(CharSequence htmlText) static RawHtml
Creates HTML for an HTML comment.static RawHtml
endElement
(CharSequence name) Creates HTML for the end of an element.boolean
isEmpty()
Returns true if the content is empty.static RawHtml
of
(CharSequence rawHtml) Creates HTML for an arbitrary string of HTML.static RawHtml
startElement
(CharSequence name, Content attrs, boolean selfClosing) Creates HTML for the start of an element.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.
-
Felddetails
-
rawHtmlContent
-
-
Methodendetails
-
of
Creates HTML for an arbitrary string of HTML.The string is accepted as-is and is not validated in any way. It should be syntactically well-formed and contain matching < and >, and matching quotes for attributes.
- Parameter:
rawHtml
- the string- Gibt zurück:
- the HTML
-
startElement
Creates HTML for the start of an element.- Parameter:
name
- the name of the elementattrs
- content containing any attributesselfClosing
- whether this is a self-closing element.- Gibt zurück:
- the HTML
-
endElement
Creates HTML for the end of an element.- Parameter:
name
- the name of the element- Gibt zurück:
- the HTML
-
comment
Creates HTML for an HTML comment.The body will be enclosed in if it does not already begin and end with those sequences.
- Parameter:
body
- the body of the comment- Gibt zurück:
- the HTML
-
cdata
Creates HTML for an HTML CDATA section.The body will be enclosed in <![CDATA] and ]]> if it does not already begin and end with those sequences.
- Parameter:
body
- the body of the CDATA section- Gibt zurück:
- the HTML
-
isEmpty
Beschreibung aus Klasse kopiert:Content
Returns true if the content is empty. -
toString
Beschreibung aus Klasse kopiert:Content
Returns a string representation of the content.Newlines are represented by \n.
-
charCount
-
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
-