com.caucho.json
Class JsonInput2

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

public class JsonInput2
extends java.lang.Object

Input stream for JSON requests.


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

Constructor Detail

JsonInput2

public JsonInput2()

JsonInput2

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

init

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


readObject

public JsonValue 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

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

close

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object