Package com.vladsch.flexmark.html
Class HtmlWriter
- java.lang.Object
-
- com.vladsch.flexmark.util.html.HtmlAppendableBase<HtmlWriter>
-
- com.vladsch.flexmark.html.HtmlWriter
-
- All Implemented Interfaces:
HtmlAppendable,LineAppendable,java.lang.Appendable,java.lang.Iterable<LineInfo>
public class HtmlWriter extends HtmlAppendableBase<HtmlWriter>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
LineAppendable.Options
-
-
Field Summary
Fields Modifier and Type Field Description private @Nullable NodeRendererContextcontextprivate @Nullable AttributablePartuseAttributes-
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
Constructors Constructor Description HtmlWriter(int indentSize, int formatOptions)HtmlWriter(int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine)HtmlWriter(@Nullable java.lang.Appendable appendable, int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine)HtmlWriter(HtmlWriter other, boolean inheritIndent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull NodeRendererContextgetContext()(package private) voidsetContext(@NotNull NodeRendererContext context)@NotNull HtmlWritersrcPos()@NotNull HtmlWritersrcPos(int startOffset, int endOffset)@NotNull HtmlWritersrcPos(@NotNull BasedSequence sourceText)@NotNull HtmlWritersrcPosWithEOL()@NotNull HtmlWritersrcPosWithEOL(@NotNull BasedSequence sourceText)@NotNull HtmlWritersrcPosWithTrailingEOL()@NotNull HtmlWritersrcPosWithTrailingEOL(@NotNull BasedSequence sourceText)@NotNull HtmlWritertag(@NotNull java.lang.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, withCondLineOnChildText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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 Detail
-
context
@Nullable private @Nullable NodeRendererContext context
-
useAttributes
@Nullable private @Nullable AttributablePart useAttributes
-
-
Constructor Detail
-
HtmlWriter
public HtmlWriter(int indentSize, int formatOptions)
-
HtmlWriter
public HtmlWriter(HtmlWriter other, boolean inheritIndent)
-
HtmlWriter
public HtmlWriter(int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine)
-
HtmlWriter
public HtmlWriter(@Nullable @Nullable java.lang.Appendable appendable, int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine)
-
-
Method Detail
-
setContext
void setContext(@NotNull @NotNull NodeRendererContext context)
-
getContext
@NotNull public @NotNull NodeRendererContext getContext()
-
srcPos
@NotNull public @NotNull HtmlWriter srcPos()
-
srcPosWithEOL
@NotNull public @NotNull HtmlWriter srcPosWithEOL()
-
srcPosWithTrailingEOL
@NotNull public @NotNull HtmlWriter srcPosWithTrailingEOL()
-
srcPos
@NotNull public @NotNull HtmlWriter srcPos(@NotNull @NotNull BasedSequence sourceText)
-
srcPosWithEOL
@NotNull public @NotNull HtmlWriter srcPosWithEOL(@NotNull @NotNull BasedSequence sourceText)
-
srcPosWithTrailingEOL
@NotNull public @NotNull HtmlWriter srcPosWithTrailingEOL(@NotNull @NotNull BasedSequence sourceText)
-
srcPos
@NotNull public @NotNull HtmlWriter srcPos(int startOffset, int endOffset)
-
withAttr
@NotNull public @NotNull HtmlWriter withAttr()
- Specified by:
withAttrin interfaceHtmlAppendable- Overrides:
withAttrin classHtmlAppendableBase<HtmlWriter>
-
withAttr
@NotNull public @NotNull HtmlWriter withAttr(@NotNull @NotNull AttributablePart part)
-
withAttr
@NotNull public @NotNull HtmlWriter withAttr(@NotNull @NotNull LinkStatus status)
-
withAttr
@NotNull public @NotNull HtmlWriter withAttr(@NotNull @NotNull ResolvedLink resolvedLink)
-
tag
@NotNull public @NotNull HtmlWriter tag(@NotNull @NotNull java.lang.CharSequence tagName, boolean voidElement)
- Specified by:
tagin interfaceHtmlAppendable- Overrides:
tagin classHtmlAppendableBase<HtmlWriter>
-
-