Indenter.TagIndentSpot
Constructor and Description |
---|
SimpleIndenter(String startTagNewLine,
String startTagIndent,
String endTagNewLine,
String endTagIndent)
EXPERIMENTAL MAY CHANGE
|
Modifier and Type | Method and Description |
---|---|
void |
indentTag(Appendable a,
int innerDepth,
int outerDepth,
Indenter.TagIndentSpot spot,
String tag,
MarkupBuilder.TagClosingPolicy p,
boolean empty)
Called by the builder to provide whitespace decoration.
|
public SimpleIndenter(String startTagNewLine, String startTagIndent, String endTagNewLine, String endTagIndent)
startTagNewLine
- null not recommended.startTagIndent
- null not recommended.endTagNewLine
- null not recommended.endTagIndent
- null not recommended.public void indentTag(Appendable a, int innerDepth, int outerDepth, Indenter.TagIndentSpot spot, String tag, MarkupBuilder.TagClosingPolicy p, boolean empty) throws IOException
EXPERIMENTAL MAY CHANGE
indentTag
in interface Indenter
a
- writer like object where indenting decoration is to be applied.innerDepth
- current indent depth inside the current builder.outerDepth
- starting depth based on the outside builder if there is one. Usually this is zero.spot
- current position that white space is to be applied.tag
- the tag to be indented, not null
.p
- closing policy for the tag to be indented.empty
- if the tag is empty.IOException
MarkupBuilder.indent(Indenter)
Copyright © 2010–2014 JATL. All rights reserved.