cc.plural.jsonij
Class StringJSONReader.StringJSONStringReader

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

protected class StringJSONReader.StringJSONStringReader
extends Object
implements ReaderParser


Field Summary
 boolean active
           
 
Constructor Summary
StringJSONReader.StringJSONStringReader()
           
 
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

public boolean active
Constructor Detail

StringJSONReader.StringJSONStringReader

public StringJSONReader.StringJSONStringReader()
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.