String. Notice that none of the overridden methods throw IOException.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public int | peek()
Implements org. |
| public boolean | peek(char c)
Implements org. |
| public int | peek(String chars)
Implements org. String.
|
| public boolean | peekRead(char c)
Implements org. |
| public int | peekRead(String chars)
Implements org. String, it is consumed.
|
| public char | read()
Implements org. |
| public void | read(char c)
Implements org. |
| public int | read(String chars)
Implements org. String.
|
| public String |
| StringCharStream | back to summary |
|---|---|
| public StringCharStream(String in) | |
| atEoi | back to summary |
|---|---|
| public boolean atEoi() Implements org.
| |
| eoi | back to summary |
|---|---|
| public void eoi() throws UnexpectedCharacterException Implements org.
| |
| peek | back to summary |
|---|---|
| public int peek() Implements org. Doc from org. Returns the next character on this stream but does not consume it. | |
| peek | back to summary |
|---|---|
| public boolean peek(char c) Implements org. Doc from org. 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) Implements org. Doc from org. 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) Implements org. Doc from org. If the next character on this stream equals the given character, it is consumed.
| |
| peekRead | back to summary |
|---|---|
| public int peekRead(String chars) Implements org. Doc from org. If the next character on this stream is in the given | |
| read | back to summary |
|---|---|
| public char read() throws EOFException Implements org. Doc from org. Consumes and returns the next character on this stream.
| |
| read | back to summary |
|---|---|
| public void read(char c) throws EOFException, UnexpectedCharacterException Implements org. Doc from org. 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, UnexpectedCharacterException Implements org. Doc from org. Consumes the nect character and verifies that it matches one of the characters of the given
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |