com.stanfy.gsonxml
Class XmlReader

java.lang.Object
  extended by com.google.gson.stream.JsonReader
      extended by com.stanfy.gsonxml.XmlReader
All Implemented Interfaces:
java.io.Closeable

public class XmlReader
extends com.google.gson.stream.JsonReader

Reads XML as JSON.


Nested Class Summary
static class XmlReader.Options
          Xml reader options.
 
Constructor Summary
XmlReader(java.io.Reader in, XmlParserCreator creator, XmlReader.Options options)
           
 
Method Summary
 void beginArray()
           
 void beginObject()
           
 void endArray()
           
 void endObject()
           
 boolean hasNext()
           
 boolean nextBoolean()
           
 double nextDouble()
           
 int nextInt()
           
 long nextLong()
           
 java.lang.String nextName()
           
 java.lang.String nextString()
           
 com.google.gson.stream.JsonToken peek()
           
 void skipValue()
           
 java.lang.String toString()
           
 
Methods inherited from class com.google.gson.stream.JsonReader
close, isLenient, nextNull, setLenient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlReader

public XmlReader(java.io.Reader in,
                 XmlParserCreator creator,
                 XmlReader.Options options)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class com.google.gson.stream.JsonReader

beginObject

public void beginObject()
                 throws java.io.IOException
Overrides:
beginObject in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

endObject

public void endObject()
               throws java.io.IOException
Overrides:
endObject in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

beginArray

public void beginArray()
                throws java.io.IOException
Overrides:
beginArray in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

endArray

public void endArray()
              throws java.io.IOException
Overrides:
endArray in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

hasNext

public boolean hasNext()
                throws java.io.IOException
Overrides:
hasNext in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

skipValue

public void skipValue()
               throws java.io.IOException
Overrides:
skipValue in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

peek

public com.google.gson.stream.JsonToken peek()
                                      throws java.io.IOException
Overrides:
peek in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

nextString

public java.lang.String nextString()
                            throws java.io.IOException
Overrides:
nextString in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

nextBoolean

public boolean nextBoolean()
                    throws java.io.IOException
Overrides:
nextBoolean in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

nextDouble

public double nextDouble()
                  throws java.io.IOException
Overrides:
nextDouble in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

nextInt

public int nextInt()
            throws java.io.IOException
Overrides:
nextInt in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

nextLong

public long nextLong()
              throws java.io.IOException
Overrides:
nextLong in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException

nextName

public java.lang.String nextName()
                          throws java.io.IOException
Overrides:
nextName in class com.google.gson.stream.JsonReader
Throws:
java.io.IOException