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.

    Note that before version 2.0, this class was located in the "core" bundle, not data-binding; but since it was only used by data binding, was moved here to reduce size of core package

Copyright © 2014-2015 FasterXML. All Rights Reserved.