public static class InputAccessor.Std extends Object implements InputAccessor
InputStream and buffers it as necessary.InputAccessor.Std| 构造器和说明 |
|---|
Std(byte[] inputDocument)
Constructor used when the full input (or at least enough leading bytes
of full input) is available.
|
Std(InputStream in,
byte[] buffer)
Constructor used when content to check is available via
input stream and must be read.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 throw
EOFException. |
void |
reset()
Method that can be called to reset accessor to read from beginning
of input.
|
public Std(InputStream in, byte[] buffer)
public Std(byte[] inputDocument)
public boolean hasMoreBytes()
throws IOException
InputAccessorIOException may get thrown.hasMoreBytes 在接口中 InputAccessorIOExceptionpublic byte nextByte()
throws IOException
InputAccessorEOFException.nextByte 在接口中 InputAccessorIOExceptionpublic void reset()
InputAccessorreset 在接口中 InputAccessorpublic DataFormatMatcher createMatcher(JsonFactory match, MatchStrength matchStrength)
Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.