public class BufferStringReader extends StringReader
It only implements required methods for HttpHeaders.parseWwwAuthenticateChallengeHeaders(String)
| Constructor and Description |
|---|
BufferStringReader(String s) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exhausted()
Check whether stream is empty or not.
|
char |
getByte()
Get current character at the beginning of the character stream.
|
char |
getByte(long index)
Get Nth character from the beginning of the character stream.
|
int |
indexOfElement(List<Character> sequences)
Get nearest index of one of the given set of characters
|
char |
readByte()
Consume single character (byte) from stream
|
String |
readUtf8(long size)
Read a string of given length from stream
|
int |
size()
Get size of stream.
|
close, mark, markSupported, read, read, ready, reset, skippublic BufferStringReader(String s)
public boolean exhausted()
throws IOException
IOException - in case of error while reading streampublic char readByte()
throws IOException
IOException - in case of error while reading the characterpublic char getByte()
throws IOException
IOException - in case of error while reading the characterpublic char getByte(long index)
throws IOException
index - index of character from the beginning of the streamIOException - in case of error while reading the characterpublic int indexOfElement(List<Character> sequences) throws IOException
sequences - list of characters that need to be searched in streamIOException - in case of error while reading the characters from streampublic int size()
throws IOException
IOException - in case of error while reading the characters.public String readUtf8(long size) throws IOException
size - size of StringIOException - in case of error while reading characters from steramCopyright © 2024. All rights reserved.