chars. These can either be "read", which means basically the same as
Reader#read(); or they can be "peeked", which means that the next character is returned, but not consumed,
i.e. the next call to read or peek will return that character again.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | EOI
A special value for the values returned by |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public int | |
| public boolean | peek(char c)
Returns whether the character stream is not at end-of-input and the next character on this stream equals the given character. |
| public int | |
| public boolean | Returns: true iff the next character on this stream equals the given characterIf the next character on this stream equals the given character, it is consumed. |
| public int | |
| public char | |
| public void | read(char c)
Consumes the next character on this stream and verifies that it equals the given character. |
| public int |
| EOI | back to summary |
|---|---|
| public static final int EOI A special value for the values returned by | |
| atEoi | back to summary |
|---|---|
public boolean atEoi() throws IOException
| |
| eoi | back to summary |
|---|---|
public void eoi() throws UnexpectedCharacterException
| |
| peek | back to summary |
|---|---|
| public int peek() throws IOException Returns the next character on this stream but does not consume it.
| |
| peek | back to summary |
|---|---|
| public boolean peek(char c) throws IOException Returns whether the character stream is not at end-of-input and the next character on this stream equals the given character. Does not consume any characters. | |
| peek | back to summary |
|---|---|
| public int peek(String chars) throws IOException Checks whether the next character on this stream equals any of the characters of the given
| |
| peekRead | back to summary |
|---|---|
| public boolean peekRead(char c) throws IOException If the next character on this stream equals the given character, it is consumed.
| |
| peekRead | back to summary |
|---|---|
| public int peekRead(String chars) throws IOException If the next character on this stream is in the given
| |
| read | back to summary |
|---|---|
| public char read() throws EOFException, IOException Consumes and returns the next character on this stream.
| |
| read | back to summary |
|---|---|
| public void read(char c) throws EOFException, UnexpectedCharacterException Consumes the next character on this stream and verifies that it equals the given character.
| |
| read | back to summary |
|---|---|
| public int read(String chars) throws EOFException, IOException, UnexpectedCharacterException Consumes the nect character and verifies that it matches one of the characters of the given
| |