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 NodeRendererContextprivate @Nullable AttributablePartFields 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) voidsetContext(@NotNull NodeRendererContext context) @NotNull HtmlWritersrcPos()@NotNull HtmlWritersrcPos(int startOffset, int endOffset) @NotNull HtmlWritersrcPos(@NotNull BasedSequence sourceText) @NotNull HtmlWriter@NotNull HtmlWritersrcPosWithEOL(@NotNull BasedSequence sourceText) @NotNull HtmlWriter@NotNull HtmlWritersrcPosWithTrailingEOL(@NotNull BasedSequence sourceText) @NotNull HtmlWritertag(@NotNull CharSequence tagName, boolean voidElement) @NotNull HtmlWriterwithAttr()@NotNull HtmlWriterwithAttr(@NotNull AttributablePart part) @NotNull HtmlWriterwithAttr(@NotNull LinkStatus status) @NotNull HtmlWriterwithAttr(@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, withCondLineOnChildTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
withAttrin interfaceHtmlAppendable- Overrides:
withAttrin classHtmlAppendableBase<HtmlWriter>
-
withAttr
-
withAttr
-
withAttr
-
tag
@NotNull public @NotNull HtmlWriter tag(@NotNull @NotNull CharSequence tagName, boolean voidElement) - Specified by:
tagin interfaceHtmlAppendable- Overrides:
tagin classHtmlAppendableBase<HtmlWriter>
-