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