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 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(HtmlWriter other, boolean inheritIndent)
HtmlWriter(java.lang.Appendable appendable, int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeRendererContext
getContext()
HtmlWriter
srcPos()
HtmlWriter
srcPos(int startOffset, int endOffset)
HtmlWriter
srcPos(BasedSequence sourceText)
HtmlWriter
srcPosWithEOL()
HtmlWriter
srcPosWithEOL(BasedSequence sourceText)
HtmlWriter
srcPosWithTrailingEOL()
HtmlWriter
srcPosWithTrailingEOL(BasedSequence sourceText)
HtmlWriter
tag(java.lang.CharSequence tagName, boolean voidElement)
HtmlWriter
withAttr()
HtmlWriter
withAttr(AttributablePart part)
HtmlWriter
withAttr(LinkStatus status)
HtmlWriter
withAttr(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
-
-
-
-
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 java.lang.Appendable appendable, int indentSize, int formatOptions, boolean suppressOpenTagLine, boolean suppressCloseTagLine)
-
-
Method Detail
-
getContext
@NotNull public NodeRendererContext getContext()
-
srcPos
@NotNull public HtmlWriter srcPos()
-
srcPosWithEOL
@NotNull public HtmlWriter srcPosWithEOL()
-
srcPosWithTrailingEOL
@NotNull public HtmlWriter srcPosWithTrailingEOL()
-
srcPos
@NotNull public HtmlWriter srcPos(@NotNull BasedSequence sourceText)
-
srcPosWithEOL
@NotNull public HtmlWriter srcPosWithEOL(@NotNull BasedSequence sourceText)
-
srcPosWithTrailingEOL
@NotNull public HtmlWriter srcPosWithTrailingEOL(@NotNull BasedSequence sourceText)
-
srcPos
@NotNull public HtmlWriter srcPos(int startOffset, int endOffset)
-
withAttr
@NotNull public HtmlWriter withAttr()
- Specified by:
withAttr
in interfaceHtmlAppendable
- Overrides:
withAttr
in classHtmlAppendableBase<HtmlWriter>
-
withAttr
@NotNull public HtmlWriter withAttr(@NotNull AttributablePart part)
-
withAttr
@NotNull public HtmlWriter withAttr(@NotNull LinkStatus status)
-
withAttr
@NotNull public HtmlWriter withAttr(@NotNull ResolvedLink resolvedLink)
-
tag
@NotNull public HtmlWriter tag(@NotNull java.lang.CharSequence tagName, boolean voidElement)
- Specified by:
tag
in interfaceHtmlAppendable
- Overrides:
tag
in classHtmlAppendableBase<HtmlWriter>
-
-