Class HtmlWriter

  • All Implemented Interfaces:
    com.vladsch.flexmark.util.html.HtmlAppendable, com.vladsch.flexmark.util.sequence.LineAppendable, Appendable, Iterable<com.vladsch.flexmark.util.sequence.LineInfo>

    public class HtmlWriter
    extends com.vladsch.flexmark.util.html.HtmlAppendableBase<HtmlWriter>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable

        com.vladsch.flexmark.util.sequence.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​(@Nullable 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 NodeRendererContext getContext()  
      @NotNull HtmlWriter srcPos()  
      @NotNull HtmlWriter srcPos​(int startOffset, int endOffset)  
      @NotNull HtmlWriter srcPos​(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence sourceText)  
      @NotNull HtmlWriter srcPosWithEOL()  
      @NotNull HtmlWriter srcPosWithEOL​(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence sourceText)  
      @NotNull HtmlWriter srcPosWithTrailingEOL()  
      @NotNull HtmlWriter srcPosWithTrailingEOL​(@NotNull com.vladsch.flexmark.util.sequence.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 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
                          @Nullable Appendable appendable,
                          int indentSize,
                          int formatOptions,
                          boolean suppressOpenTagLine,
                          boolean suppressCloseTagLine)
    • Method Detail

      • 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 com.vladsch.flexmark.util.sequence.BasedSequence sourceText)
      • srcPosWithEOL

        @NotNull
        public @NotNull HtmlWriter srcPosWithEOL​(@NotNull
                                                 @NotNull com.vladsch.flexmark.util.sequence.BasedSequence sourceText)
      • srcPosWithTrailingEOL

        @NotNull
        public @NotNull HtmlWriter srcPosWithTrailingEOL​(@NotNull
                                                         @NotNull com.vladsch.flexmark.util.sequence.BasedSequence sourceText)
      • srcPos

        @NotNull
        public @NotNull HtmlWriter srcPos​(int startOffset,
                                          int endOffset)
      • withAttr

        @NotNull
        public @NotNull HtmlWriter withAttr()
        Specified by:
        withAttr in interface com.vladsch.flexmark.util.html.HtmlAppendable
        Overrides:
        withAttr in class com.vladsch.flexmark.util.html.HtmlAppendableBase<HtmlWriter>
      • tag

        @NotNull
        public @NotNull HtmlWriter tag​(@NotNull
                                       @NotNull CharSequence tagName,
                                       boolean voidElement)
        Specified by:
        tag in interface com.vladsch.flexmark.util.html.HtmlAppendable
        Overrides:
        tag in class com.vladsch.flexmark.util.html.HtmlAppendableBase<HtmlWriter>