com.fasterxml.jackson.databind.util

Class TokenBuffer

  • All Implemented Interfaces:
    Versioned, Closeable, Flushable, AutoCloseable


    public class TokenBuffer
    extends JsonGenerator
    Utility class used for efficient storage of JsonToken sequences, needed for temporary buffering. Space efficient for different sequence lengths (especially so for smaller ones; but not significantly less efficient for larger), highly efficient for linear iteration and appending. Implemented as segmented/chunked linked list of tokens; only modifications are via appends.

Copyright © 2008–2023 FasterXML. All rights reserved.