Class InputAccessor.Std

java.lang.Object
org.codehaus.jackson.format.InputAccessor.Std
All Implemented Interfaces:
InputAccessor
Enclosing interface:
InputAccessor

public static class InputAccessor.Std extends Object implements InputAccessor
Basic implementation that reads data from given InputStream and buffers it as necessary.
  • Field Details

    • _in

      protected final InputStream _in
    • _buffer

      protected final byte[] _buffer
    • _bufferedAmount

      protected int _bufferedAmount
      Number of bytes in _buffer that are valid buffered content.
    • _ptr

      protected int _ptr
      Pointer to next available buffered byte in _buffer.
  • Constructor Details

    • Std

      public Std(InputStream in, byte[] buffer)
      Constructor used when content to check is available via input stream and must be read.
    • Std

      public Std(byte[] inputDocument)
      Constructor used when the full input (or at least enough leading bytes of full input) is available.
  • Method Details