public interface Indenter
EXPERIMENTAL MAY CHANGE
MarkupBuilder.indent(Indenter)
Modifier and Type | Interface and Description |
---|---|
static class |
Indenter.TagIndentSpot
Indicates the current position (cursor) of where whitespace is to be applied.
|
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.
|
void indentTag(Appendable a, int innerDepth, int outerDepth, Indenter.TagIndentSpot spot, String tag, MarkupBuilder.TagClosingPolicy p, boolean empty) throws IOException
EXPERIMENTAL MAY CHANGE
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-2013 JATL. All Rights Reserved.