Class InputAccessor.Std
- java.lang.Object
-
- com.fasterxml.jackson.core.format.InputAccessor.Std
-
- All Implemented Interfaces:
InputAccessor
- Enclosing interface:
- InputAccessor
public static class InputAccessor.Std extends java.lang.Object implements InputAccessor
Basic implementation that reads data from givenInputStream
and buffers it as necessary.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.core.format.InputAccessor
InputAccessor.Std
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormatMatcher
createMatcher(JsonFactory match, MatchStrength matchStrength)
boolean
hasMoreBytes()
Method to call to check if more input is available.byte
nextByte()
Returns next byte available, if any; if no more bytes are available, will throwEOFException
.void
reset()
Method that can be called to reset accessor to read from beginning of input.
-
-
-
Method Detail
-
hasMoreBytes
public boolean hasMoreBytes() throws java.io.IOException
Description copied from interface:InputAccessor
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), aIOException
may get thrown.- Specified by:
hasMoreBytes
in interfaceInputAccessor
- Returns:
- Whether there is at least one more input byte accessible
- Throws:
java.io.IOException
- If check for more content failed due to issue with underlying input abstraction
-
nextByte
public byte nextByte() throws java.io.IOException
Description copied from interface:InputAccessor
Returns next byte available, if any; if no more bytes are available, will throwEOFException
.- Specified by:
nextByte
in interfaceInputAccessor
- Returns:
- Next content byte, if available
- Throws:
java.io.IOException
- If called and there is no more content available
-
reset
public void reset()
Description copied from interface:InputAccessor
Method that can be called to reset accessor to read from beginning of input.- Specified by:
reset
in interfaceInputAccessor
-
createMatcher
public DataFormatMatcher createMatcher(JsonFactory match, MatchStrength matchStrength)
-
-