Class TokenBuffer

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Versioned

    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.
    Since:
    1.5