Class TokenBuffer


  • public class TokenBuffer
    extends Object
    Helper class to enable lookahead in the token stream.
    Author:
    Steinar Knutsen
    • Constructor Detail

      • TokenBuffer

        public TokenBuffer()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Returns whether any tokens are available in this
      • next

        public com.fasterxml.jackson.core.JsonToken next()
      • currentToken

        public com.fasterxml.jackson.core.JsonToken currentToken()
        Returns the current token without changing position, or null if none
      • currentName

        public String currentName()
        Returns the current token name without changing position, or null if none
      • currentText

        public String currentText()
        Returns the current token text without changing position, or null if none
      • size

        public int size()
      • bufferObject

        public void bufferObject​(com.fasterxml.jackson.core.JsonToken first,
                                 com.fasterxml.jackson.core.JsonParser tokens)
      • bufferArray

        public void bufferArray​(com.fasterxml.jackson.core.JsonToken first,
                                com.fasterxml.jackson.core.JsonParser tokens)
      • nesting

        public int nesting()
      • dumpContents

        public String dumpContents()
      • fastForwardToEndObject

        public void fastForwardToEndObject()
      • prefetchCurrentElement

        public TokenBuffer prefetchCurrentElement()