public class

JsonSocketHandler

extends JsonHandler
java.lang.Object
   ↳ edu.stanford.junction.provider.jx.json.JsonHandler
     ↳ edu.stanford.junction.provider.jx.json.JsonSocketHandler

Class Overview

Helps read and write json messages over a socket by handling chunking for both reads and writes.

Summary

[Expand]
Inherited Fields
From class edu.stanford.junction.provider.jx.json.JsonHandler
Public Constructors
JsonSocketHandler(InputStream in, OutputStream out)
Public Methods
JSONObject jsonFromStream()
void sendJson(JSONObject message)
[Expand]
Inherited Methods
From class edu.stanford.junction.provider.jx.json.JsonHandler
From class java.lang.Object

Public Constructors

public JsonSocketHandler (InputStream in, OutputStream out)

Public Methods

public JSONObject jsonFromStream ()

Throws
IOException

public void sendJson (JSONObject message)

Throws
IOException