Class SegmentedStringWriter

java.lang.Object
java.io.Writer
com.fasterxml.jackson.core.io.SegmentedStringWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public final class SegmentedStringWriter extends Writer
Efficient alternative to StringWriter, based on using segmented internal buffer. Initial input buffer is also recyclable.

This class is most useful when serializing JSON content as a String: if so, instance of this class can be given as the writer to JsonGenerator.