public static class SimpleFormatters.FixedString extends java.lang.Object implements Formatter
Formatter
which totally ignores the given
TextStore
and instead appends a predefined string to the
destination buffer.Constructor and Description |
---|
FixedString(java.lang.StringBuilder other)
|
Modifier and Type | Method and Description |
---|---|
void |
append(SimpleFormatters.FixedString other) |
void |
append(java.lang.StringBuilder sb)
appends the content of
sb to the predifined string
to be used by format . |
void |
format(java.lang.StringBuilder sb,
TextStore sp,
java.util.Map<java.lang.Object,java.lang.Object> m)
arranges (some of) the pieces of text found in
st
or m in an implementation dependend manner and
appends them to out . |
public void append(java.lang.StringBuilder sb)
sb
to the predifined string
to be used by format
.public void append(SimpleFormatters.FixedString other)
public void format(java.lang.StringBuilder sb, TextStore sp, java.util.Map<java.lang.Object,java.lang.Object> m)
Formatter
arranges (some of) the pieces of text found in st
or m
in an implementation dependend manner and
appends them to out
. Depending on the
implementation, both, st
and m
or even
both may be allowed to be null
.
Postcondition: This method may not change the content of
dest
other than by appending to it.