- java.lang.Object
-
- io.github.mmm.marshall.AbstractStructuredWriter
-
- io.github.mmm.marshall.AbstractStructuredStringWriter
-
- All Implemented Interfaces:
StructuredWriter
,AutoCloseable
public abstract class AbstractStructuredStringWriter extends AbstractStructuredWriter
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected int
indentCount
The current indentation count.protected Appendable
out
TheAppendable
where towrite
the data to.-
Fields inherited from class io.github.mmm.marshall.AbstractStructuredWriter
config, indentation, name, writeNullValues
-
-
Constructor Summary
Constructors Constructor Description AbstractStructuredStringWriter(Appendable out, MarshallingConfig config)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
write(char data)
protected void
write(String data)
protected void
writeIndent()
Writes a new indentation.protected void
writeIndent(int count)
Writes a new indentation.-
Methods inherited from class io.github.mmm.marshall.AbstractStructuredWriter
writeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.marshall.StructuredWriter
writeEnd, writeStartArray, writeStartObject, writeValue, writeValueAsBigDecimal, writeValueAsBigInteger, writeValueAsBoolean, writeValueAsByte, writeValueAsDouble, writeValueAsFloat, writeValueAsInteger, writeValueAsLong, writeValueAsNull, writeValueAsNumber, writeValueAsShort, writeValueAsString
-
-
-
-
Field Detail
-
out
protected Appendable out
TheAppendable
where towrite
the data to.
-
indentCount
protected int indentCount
The current indentation count.
-
-
Constructor Detail
-
AbstractStructuredStringWriter
public AbstractStructuredStringWriter(Appendable out, MarshallingConfig config)
The constructor.- Parameters:
out
- theAppendable
to write the data to.config
- theMarshallingConfig
.
-
-
Method Detail
-
writeIndent
protected void writeIndent()
Writes a new indentation.
-
writeIndent
protected void writeIndent(int count)
Writes a new indentation.- Parameters:
count
- the number of indentations to write.
-
write
protected void write(char data)
- Parameters:
data
- thechar
to write.
-
close
public void close()
-
-