Class InputAccessor.Std
java.lang.Object
com.fasterxml.jackson.core.format.InputAccessor.Std
- All Implemented Interfaces:
InputAccessor
- Enclosing interface:
InputAccessor
Basic implementation that reads data from given
InputStream and buffers it as necessary.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fasterxml.jackson.core.format.InputAccessor
InputAccessor.Std -
Constructor Summary
ConstructorsConstructorDescriptionStd(byte[] inputDocument) Std(byte[] inputDocument, int start, int len) Std(InputStream in, byte[] buffer) -
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher(JsonFactory match, MatchStrength matchStrength) booleanMethod to call to check if more input is available.bytenextByte()Returns next byte available, if any; if no more bytes are available, will throwEOFException.voidreset()Method that can be called to reset accessor to read from beginning of input.
-
Constructor Details
-
Std
-
Std
public Std(byte[] inputDocument) -
Std
public Std(byte[] inputDocument, int start, int len)
-
-
Method Details
-
hasMoreBytes
Description copied from interface:InputAccessorMethod to call to check if more input is available. Since this may result in more content to be read (at least one more byte), aIOExceptionmay get thrown.- Specified by:
hasMoreBytesin interfaceInputAccessor- Returns:
- Whether there is at least one more input byte accessible
- Throws:
IOException- If check for more content failed due to issue with underlying input abstraction
-
nextByte
Description copied from interface:InputAccessorReturns next byte available, if any; if no more bytes are available, will throwEOFException.- Specified by:
nextBytein interfaceInputAccessor- Returns:
- Next content byte, if available
- Throws:
IOException- If called and there is no more content available
-
reset
public void reset()Description copied from interface:InputAccessorMethod that can be called to reset accessor to read from beginning of input.- Specified by:
resetin interfaceInputAccessor
-
createMatcher
-