|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.waterken.syntax.json.JSONLexer
public final class JSONLexer
A JSON token reader.
Constructor Summary | |
---|---|
JSONLexer(java.io.Reader in)
Constructs an instance. |
Method Summary | |
---|---|
void |
close()
|
int |
getColumn()
Gets the column number of the head token. |
java.lang.String |
getHead()
Gets the most recently read token. |
int |
getLine()
Gets the line number of the head token. |
java.lang.String |
next()
Move to the next token in the input stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONLexer(java.io.Reader in)
in
- UTF-8 input streamMethod Detail |
---|
public int getLine()
public int getColumn()
public java.lang.String getHead()
null
if EOFpublic java.lang.String next() throws java.io.EOFException, java.io.IOException, java.lang.Exception
java.io.EOFException
- EOF
java.io.IOException
- any I/O error
java.lang.Exception
- invalid character escapepublic void close() throws java.io.IOException
java.io.IOException
|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.