public static class PeekReader.ReadResult extends java.lang.Object
PeekReader
.Constructor and Description |
---|
ReadResult(java.lang.CharSequence sequence,
boolean completelyRead)
Creates a new instance of this class
|
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
getSequence()
The character sequence that was read from the underlying data source.
|
boolean |
isCompletelyRead()
Allows to determine whether the specified maximum number of characters were read or all characters
were read as intended.
|
public ReadResult(java.lang.CharSequence sequence, boolean completelyRead)
sequence
- the character sequence that was readcompletelyRead
- Specify true
here if the returned sequence contains all characters that
should have been read or false
if reading was aborted because the maximum number of
characters was read.public java.lang.CharSequence getSequence()
public boolean isCompletelyRead()
true
if the returned sequence contains all characters that should have been read or
false
if reading was aborted because the maximum number of characters was reached