android.util
Class JsonReader

java.lang.Object
  extended by android.util.JsonReader
All Implemented Interfaces:
Closeable

public final class JsonReader
extends Object
implements Closeable


Constructor Summary
JsonReader(Reader in)
           
 
Method Summary
 void beginArray()
           
 void beginObject()
           
 void close()
           
 void endArray()
           
 void endObject()
           
 boolean hasNext()
           
 boolean isLenient()
           
 boolean nextBoolean()
           
 double nextDouble()
           
 int nextInt()
           
 long nextLong()
           
 String nextName()
           
 void nextNull()
           
 String nextString()
           
 JsonToken peek()
           
 void setLenient(boolean lenient)
           
 void skipValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonReader

public JsonReader(Reader in)
Method Detail

setLenient

public void setLenient(boolean lenient)

isLenient

public boolean isLenient()

beginArray

public void beginArray()
                throws IOException
Throws:
IOException

endArray

public void endArray()
              throws IOException
Throws:
IOException

beginObject

public void beginObject()
                 throws IOException
Throws:
IOException

endObject

public void endObject()
               throws IOException
Throws:
IOException

hasNext

public boolean hasNext()
                throws IOException
Throws:
IOException

peek

public JsonToken peek()
               throws IOException
Throws:
IOException

nextName

public String nextName()
                throws IOException
Throws:
IOException

nextString

public String nextString()
                  throws IOException
Throws:
IOException

nextBoolean

public boolean nextBoolean()
                    throws IOException
Throws:
IOException

nextNull

public void nextNull()
              throws IOException
Throws:
IOException

nextDouble

public double nextDouble()
                  throws IOException
Throws:
IOException

nextLong

public long nextLong()
              throws IOException
Throws:
IOException

nextInt

public int nextInt()
            throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

skipValue

public void skipValue()
               throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012. All Rights Reserved.