cc.plural.jsonij
Class ReaderJSONReader.ReaderJSONStringReader

java.lang.Object
  extended by cc.plural.jsonij.ReaderJSONReader.ReaderJSONStringReader
All Implemented Interfaces:
ReaderParser
Enclosing class:
ReaderJSONReader

protected class ReaderJSONReader.ReaderJSONStringReader
extends Object
implements ReaderParser


Field Summary
protected  boolean active
           
 
Constructor Summary
ReaderJSONReader.ReaderJSONStringReader()
           
 
Method Summary
 void close()
           
 int getLineNumber()
           
 Position getPosition()
           
 int getPositionNumber()
           
 boolean hasPeeked()
           
 boolean isActive()
           
 boolean isHasPeeked()
          Only here for POJO reasons.
 int peek()
           
 int read()
           
protected  int readNext()
           
protected  void setActive(boolean active)
           
 void setHasPeeked(boolean hasPeeked)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

active

protected boolean active
Constructor Detail

ReaderJSONReader.ReaderJSONStringReader

public ReaderJSONReader.ReaderJSONStringReader()
Method Detail

isActive

public boolean isActive()
Returns:
the active

setActive

protected void setActive(boolean active)
Parameters:
active - the active to set

peek

public int peek()
         throws IOException
Specified by:
peek in interface ReaderParser
Throws:
IOException

read

public int read()
         throws IOException
Specified by:
read in interface ReaderParser
Throws:
IOException

close

public void close()
Specified by:
close in interface ReaderParser

readNext

protected int readNext()
                throws IOException
Throws:
IOException

getPosition

public Position getPosition()
Specified by:
getPosition in interface ReaderParser
Returns:
the position

isHasPeeked

public boolean isHasPeeked()
Description copied from interface: ReaderParser
Only here for POJO reasons.

Specified by:
isHasPeeked in interface ReaderParser
Returns:
hasPeeked()
See Also:
ReaderParser.hasPeeked()

hasPeeked

public boolean hasPeeked()
Specified by:
hasPeeked in interface ReaderParser

setHasPeeked

public void setHasPeeked(boolean hasPeeked)
Specified by:
setHasPeeked in interface ReaderParser

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface ReaderParser

getPositionNumber

public int getPositionNumber()
Specified by:
getPositionNumber in interface ReaderParser


Copyright © 2012. All Rights Reserved.