com.fasterxml.jackson.core.io

Class 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.

Copyright © 2008–2023 FasterXML. All rights reserved.