com.fasterxml.jackson.core.json

Class ByteSourceJsonBootstrapper



  • public final class ByteSourceJsonBootstrapper
    extends Object
    This class is used to determine the encoding of byte stream that is to contain JSON content. Rules are fairly simple, and defined in JSON specification (RFC-4627 or newer), except for BOM handling, which is a property of underlying streams.
    • Field Detail

      • _context

        protected final IOContext _context
      • _inputBuffer

        protected final byte[] _inputBuffer
      • _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.

      • _bigEndian

        protected boolean _bigEndian
      • _bytesPerChar

        protected int _bytesPerChar
    • Constructor Detail

      • ByteSourceJsonBootstrapper

        public ByteSourceJsonBootstrapper(IOContext ctxt,
                                  byte[] inputBuffer,
                                  int inputStart,
                                  int inputLen)

Copyright © 2014 FasterXML. All Rights Reserved.