com.caucho.json
Class JsonInput2
java.lang.Object
com.caucho.json.JsonInput2
public class JsonInput2
- extends java.lang.Object
Input stream for JSON requests.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JsonInput2
public JsonInput2()
JsonInput2
public JsonInput2(java.io.InputStream is)
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