Class CBORParserBootstrapper

java.lang.Object
tools.jackson.dataformat.cbor.CBORParserBootstrapper

public class CBORParserBootstrapper extends Object
Simple bootstrapper version used with CBOR format parser.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
    Flag that indicates whether buffer above is to be recycled after being used or not.
    protected final InputStream
     
    protected final byte[]
     
    protected int
     
    protected int
    Current number of input units (bytes or chars) that were processed in previous blocks, before contents of current input buffer.
    protected int
     
    protected final tools.jackson.core.io.IOContext
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CBORParserBootstrapper(tools.jackson.core.io.IOContext ioCtxt, byte[] inputBuffer, int inputStart, int inputLen)
     
    CBORParserBootstrapper(tools.jackson.core.io.IOContext ioCtxt, InputStream in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    constructParser(tools.jackson.core.ObjectReadContext readCtxt, int factoryFeatures, int generalParserFeatures, int formatFeatures, tools.jackson.core.sym.ByteQuadsCanonicalizer rootByteSymbols)
     
    protected boolean
    ensureLoaded(int minimum)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _ioContext

      protected final tools.jackson.core.io.IOContext _ioContext
    • _in

      protected final InputStream _in
    • _inputBuffer

      protected final byte[] _inputBuffer
    • _inputPtr

      protected int _inputPtr
    • _inputEnd

      protected int _inputEnd
    • _bufferRecyclable

      protected final boolean _bufferRecyclable
      Flag that indicates whether buffer above is to be recycled after being used or not.
    • _inputProcessed

      protected int _inputProcessed
      Current number of input units (bytes or chars) that were processed in previous blocks, before contents of current input buffer.

      Note: includes possible BOMs, if those were part of the input.

  • Constructor Details

    • CBORParserBootstrapper

      public CBORParserBootstrapper(tools.jackson.core.io.IOContext ioCtxt, InputStream in)
    • CBORParserBootstrapper

      public CBORParserBootstrapper(tools.jackson.core.io.IOContext ioCtxt, byte[] inputBuffer, int inputStart, int inputLen)
  • Method Details

    • constructParser

      public CBORParser constructParser(tools.jackson.core.ObjectReadContext readCtxt, int factoryFeatures, int generalParserFeatures, int formatFeatures, tools.jackson.core.sym.ByteQuadsCanonicalizer rootByteSymbols) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • ensureLoaded

      protected boolean ensureLoaded(int minimum) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException