cc.plural.jsonij
Class StringJSONReader
java.lang.Object
cc.plural.jsonij.parser.BaseReaderParser
cc.plural.jsonij.JSONReader
cc.plural.jsonij.StringJSONReader
- All Implemented Interfaces:
- ReaderParser
public class StringJSONReader
- extends JSONReader
java.lang.String implementation of a JSONReader.
- Author:
- J.W.Marsden
| Methods inherited from class cc.plural.jsonij.parser.BaseReaderParser |
close, getLineNumber, getPosition, getPositionNumber, handleNewLine, hasPeeked, isHasPeeked, peek, read, setHasPeeked, setPosition, toString |
jsonString
protected final String jsonString
index
protected int index
length
protected final int length
stringReader
protected final StringJSONReader.StringJSONStringReader stringReader
StringJSONReader
public StringJSONReader(String jsonString)
StringJSONReader
public StringJSONReader(String jsonString,
int index)
readNext
public int readNext()
throws IOException,
ParserException
- Description copied from class:
BaseReaderParser
- Reads from the reader.
- Specified by:
readNext in class BaseReaderParser
- Returns:
- The read byte if found otherwise -1 if the end of the stream is reached.
- Throws:
IOException - Java IO Exception.
ParserException
getIndex
public int getIndex()
getStringReader
public ReaderParser getStringReader()
- Specified by:
getStringReader in class JSONReader
Copyright © 2012. All Rights Reserved.