com.caucho.json
Class JsonInput

java.lang.Object
  extended by com.caucho.json.JsonInput

public class JsonInput
extends java.lang.Object

Input stream for JSON requests.


Constructor Summary
JsonInput()
           
JsonInput(java.io.InputStream is)
           
 
Method Summary
 void close()
           
 void endPacket()
           
 void init(java.io.InputStream is)
          Initialize the output with a new underlying stream.
 void parseBeanMap(java.lang.Object bean, JsonDeserializer deser)
           
 double readDouble()
           
 long readLong()
           
 java.lang.Object readObject()
           
<T> T
readObject(java.lang.Class<T> type)
           
 java.lang.Object readObject(java.lang.String type)
           
 java.lang.String readString()
           
 boolean startPacket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonInput

public JsonInput()

JsonInput

public JsonInput(java.io.InputStream is)
Method Detail

init

public void init(java.io.InputStream is)
Initialize the output with a new underlying stream.


readObject

public java.lang.Object readObject()
                            throws java.io.IOException
Throws:
java.io.IOException

readObject

public java.lang.Object readObject(java.lang.String type)
                            throws java.io.IOException
Throws:
java.io.IOException

readObject

public <T> T readObject(java.lang.Class<T> type)
             throws java.io.IOException
Throws:
java.io.IOException

readLong

public long readLong()
              throws java.io.IOException
Throws:
java.io.IOException

readDouble

public double readDouble()
                  throws java.io.IOException
Throws:
java.io.IOException

readString

public java.lang.String readString()
                            throws java.io.IOException
Throws:
java.io.IOException

startPacket

public boolean startPacket()
                    throws java.io.IOException
Throws:
java.io.IOException

endPacket

public void endPacket()
               throws java.io.IOException
Throws:
java.io.IOException

parseBeanMap

public void parseBeanMap(java.lang.Object bean,
                         JsonDeserializer deser)
                  throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException