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
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic RawHtmlCreates HTML for an HTML CDATA section.protected static intcharCount(CharSequence htmlText) static RawHtmlCreates HTML for an HTML comment.static RawHtmlendElement(CharSequence name) Creates HTML for the end of an element.booleanisEmpty()Returns true if the content is empty.static RawHtmlof(CharSequence rawHtml) Creates HTML for an arbitrary string of HTML.static RawHtmlstartElement(CharSequence name, Content attrs, boolean selfClosing) Creates HTML for the start of an element.toString()Returns a string representation of the content.booleanWrites 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:ContentReturns true if the content is empty. -
toString
Beschreibung aus Klasse kopiert:ContentReturns a string representation of the content.Newlines are represented by \n.
-
charCount
-
write
Beschreibung aus Klasse kopiert:ContentWrites content to a writer, using a given newline sequence, which should be either \n or the platform line separator.- Angegeben von:
writein 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
-