|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.admin.rest.readers.InputReader
public class InputReader
| Constructor Summary | |
|---|---|
InputReader(java.io.Reader reader)
Construct a InputReader from a string. |
|
InputReader(java.lang.String s)
Construct a InputReader from a string. |
|
| Method Summary | |
|---|---|
void |
back()
Back up one character. |
InputException |
error(java.lang.String message)
Resturns InputException to signal a syntax error. |
boolean |
more()
Determine if the source string still contains characters that next() can consume. |
char |
next()
Get the next character in the source string. |
java.lang.String |
next(int n)
Get the next n characters. |
char |
nextNonSpace()
Get the next char in the string, skipping whitespace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputReader(java.io.Reader reader)
reader - A reader.public InputReader(java.lang.String s)
s - A source string.| Method Detail |
|---|
public void back()
throws InputException
InputException
public char next()
throws InputException
InputExceptionpublic InputException error(java.lang.String message)
message - The error message.
public char nextNonSpace()
throws InputException
InputException
public java.lang.String next(int n)
throws InputException
n - The number of characters to take.
InputException - Substring bounds error if there are not
n characters remaining in the source string.
public boolean more()
throws InputException
InputException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||