Package com.vladsch.flexmark.html
Class HtmlWriter
- All Implemented Interfaces:
HtmlAppendable
,LineAppendable
,Appendable
,Iterable<LineInfo>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
LineAppendable.Options
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable NodeRendererContext
private @Nullable AttributablePart
Fields inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
ALLOW_LEADING_EOL, ALLOW_LEADING_WHITESPACE, COLLAPSE_WHITESPACE, CONVERT_TABS, F_COLLAPSE_WHITESPACE, F_CONVERT_TABS, F_FORMAT_ALL, F_PASS_THROUGH, F_PREFIX_PRE_FORMATTED, F_TRIM_LEADING_EOL, F_TRIM_LEADING_WHITESPACE, F_TRIM_TRAILING_WHITESPACE, F_WHITESPACE_REMOVAL, FORMAT_ALL, O_COLLAPSE_WHITESPACE, O_CONVERT_TABS, O_FORMAT_ALL, O_PASS_THROUGH, O_PREFIX_PRE_FORMATTED, O_TRIM_LEADING_EOL, O_TRIM_LEADING_WHITESPACE, O_TRIM_TRAILING_WHITESPACE, PASS_THROUGH, PREFIX_PRE_FORMATTED, TRIM_LEADING_WHITESPACE, TRIM_TRAILING_WHITESPACE
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlWriter
(int indentSize, int formatOptions) HtmlWriter
(int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine) HtmlWriter
(@Nullable Appendable appendable, int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine) HtmlWriter
(HtmlWriter other, boolean inheritIndent) -
Method Summary
Modifier and TypeMethodDescription@NotNull NodeRendererContext
(package private) void
setContext
(@NotNull NodeRendererContext context) @NotNull HtmlWriter
srcPos()
@NotNull HtmlWriter
srcPos
(int startOffset, int endOffset) @NotNull HtmlWriter
srcPos
(@NotNull BasedSequence sourceText) @NotNull HtmlWriter
@NotNull HtmlWriter
srcPosWithEOL
(@NotNull BasedSequence sourceText) @NotNull HtmlWriter
@NotNull HtmlWriter
srcPosWithTrailingEOL
(@NotNull BasedSequence sourceText) @NotNull HtmlWriter
tag
(@NotNull CharSequence tagName, boolean voidElement) @NotNull HtmlWriter
withAttr()
@NotNull HtmlWriter
withAttr
(@NotNull AttributablePart part) @NotNull HtmlWriter
withAttr
(@NotNull LinkStatus status) @NotNull HtmlWriter
withAttr
(@NotNull ResolvedLink resolvedLink) Methods inherited from class com.vladsch.flexmark.util.html.HtmlAppendableBase
addIndentOnFirstEOL, addPrefix, addPrefix, append, append, append, append, append, appendTo, attr, attr, attr, blankLine, blankLine, blankLineIf, changeOptions, closePre, closePreFormatted, closeTag, column, endsWithEOL, getAfterEolPrefixDelta, getAttributes, getBeforeEolPrefix, getBuilder, getEmptyAppendable, getIndentPrefix, getLine, getLineCount, getLineCountWithPending, getLineInfo, getLines, getLinesInfo, getOpenTags, getOpenTagsAfterLast, getOpenTagText, getOptions, getOptionSet, getPendingEOL, getPendingSpace, getPrefix, getTrailingBlankLines, indent, inPre, insertLine, isPendingSpace, isPreFormatted, isSuppressCloseTagLine, isSuppressOpenTagLine, iterator, line, lineIf, lineOnFirstText, lineWithTrailingSpaces, offset, offsetWithPending, openPre, openPreFormatted, popOptions, popPrefix, popPrefix, popTag, pushOptions, pushPrefix, pushTag, raw, raw, rawIndentedPre, rawPre, removeExtraBlankLines, removeIndentOnFirstEOL, removeLines, setAttributes, setIndentPrefix, setLine, setOptions, setPrefix, setPrefix, setPrefixLength, setSuppressCloseTagLine, setSuppressOpenTagLine, tag, tag, tag, tagClosed, tagIndent, tagLine, tagLine, tagLine, tagLineIndent, tagOpened, tagVoid, tagVoidLine, text, toSequence, toString, toString, unIndent, unIndentNoEol, withCondIndent, withCondLineOnChildText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
addOptions, append, append, appendAll, appendTo, appendTo, appendTo, appendTo, appendToSilently, appendToSilently, appendToSilently, appendToSilently, clearLineOnFirstText, copyAppendable, copyAppendable, copyAppendable, copyAppendable, copyAppendable, get, getLineContent, getLinePrefix, getLines, getLines, getLines, getLines, getLinesInfo, getLinesInfo, getTrailingBlankLines, isEmpty, isNotEmpty, noPreserveSpaces, noTrimLeading, preserveSpaces, removeExtraBlankLines, removeOptions, setLineOnFirstText, setOptions, setOptions, toSequence, toSequence, toSequence, toSequence, toString, toString, toString, toString, trimLeading
-
Field Details
-
context
-
useAttributes
-
-
Constructor Details
-
HtmlWriter
public HtmlWriter(int indentSize, int formatOptions) -
HtmlWriter
-
HtmlWriter
public HtmlWriter(int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine) -
HtmlWriter
public HtmlWriter(@Nullable @Nullable Appendable appendable, int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine)
-
-
Method Details
-
setContext
-
getContext
-
srcPos
-
srcPosWithEOL
-
srcPosWithTrailingEOL
-
srcPos
-
srcPosWithEOL
-
srcPosWithTrailingEOL
@NotNull public @NotNull HtmlWriter srcPosWithTrailingEOL(@NotNull @NotNull BasedSequence sourceText) -
srcPos
-
withAttr
- Specified by:
withAttr
in interfaceHtmlAppendable
- Overrides:
withAttr
in classHtmlAppendableBase<HtmlWriter>
-
withAttr
-
withAttr
-
withAttr
-
tag
@NotNull public @NotNull HtmlWriter tag(@NotNull @NotNull CharSequence tagName, boolean voidElement) - Specified by:
tag
in interfaceHtmlAppendable
- Overrides:
tag
in classHtmlAppendableBase<HtmlWriter>
-