cc.plural.jsonij
Class ReaderJSONReader

java.lang.Object
  extended by cc.plural.jsonij.parser.BaseReaderParser
      extended by cc.plural.jsonij.JSONReader
          extended by cc.plural.jsonij.ReaderJSONReader
All Implemented Interfaces:
ReaderParser

public class ReaderJSONReader
extends JSONReader

java.io.Reader implementation of a JSONReader.

Author:
J.W.Marsden

Nested Class Summary
protected  class ReaderJSONReader.ReaderJSONStringReader
           
 
Field Summary
protected  Reader reader
           
 
Fields inherited from class cc.plural.jsonij.parser.BaseReaderParser
hasPeeked, peekValue, position
 
Constructor Summary
ReaderJSONReader(Reader reader)
           
 
Method Summary
 Reader getReader()
           
 ReaderParser getStringReader()
           
 int readNext()
          Reads from the reader.
 void setReader(Reader reader)
           
 
Methods inherited from class cc.plural.jsonij.parser.BaseReaderParser
close, getLineNumber, getPosition, getPositionNumber, handleNewLine, hasPeeked, isHasPeeked, peek, read, setHasPeeked, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cc.plural.jsonij.parser.ReaderParser
close, getLineNumber, getPosition, getPositionNumber, hasPeeked, isHasPeeked, peek, read, setHasPeeked
 

Field Detail

reader

protected Reader reader
Constructor Detail

ReaderJSONReader

public ReaderJSONReader(Reader reader)
Method Detail

getReader

public Reader getReader()

setReader

public void setReader(Reader reader)

readNext

public int readNext()
             throws IOException
Reads from the reader.

Specified by:
readNext in class BaseReaderParser
Parameters:
targetReader - The reader to be read from.
Returns:
The read byte if found otherwise -1 if the end of the stream is reached.
Throws:
IOException - Java IO Exception.

getStringReader

public ReaderParser getStringReader()
Specified by:
getStringReader in class JSONReader


Copyright © 2012. All Rights Reserved.