public interface

InputAccessor

com.fasterxml.jackson.core.format.InputAccessor
Known Indirect Subclasses

Class Overview

Interface used to expose beginning of a data file to data format detection code.

Summary

Nested Classes
class InputAccessor.Std Basic implementation that reads data from given InputStream and buffers it as necessary. 
Public Methods
abstract boolean hasMoreBytes()
Method to call to check if more input is available.
abstract byte nextByte()
Returns next byte available, if any; if no more bytes are available, will throw java.io.EOFException.
abstract void reset()
Method that can be called to reset accessor to read from beginning of input.

Public Methods

public abstract boolean hasMoreBytes ()

Method to call to check if more input is available. Since this may result in more content to be read (at least one more byte), a IOException may get thrown.

Throws
IOException

public abstract byte nextByte ()

Returns next byte available, if any; if no more bytes are available, will throw java.io.EOFException.

Throws
IOException

public abstract void reset ()

Method that can be called to reset accessor to read from beginning of input.