| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IJSONWriter
JavaScript Object Notation writer which manages two core object response 
 types, JSONObject or JSONArray. It is up to the components
 participating in a particular response to decide how to cooperate and build
 a JSON structure that their client side will accept.
| Method Summary | |
|---|---|
|  JSONArray | array()Provides access to the core outer JSONArraybeing 
 rendered to a response. | 
|  void | close()Causes any un-ended blocks to be closed, as well as any reasources associated with writer to be flushed/written. | 
|  void | flush()Forwards flush()to thisIJSONWriter'sPrintWriter. | 
|  JSONObject | object()Provides access to the core outer JSONObjectbeing 
 rendered to a response. | 
| Method Detail | 
|---|
JSONObject object()
JSONObject being 
 rendered to a response. The object may not necessarily be instantiated
 until requested, for instances where a response should be a pure array
 or other.
JSONObject being delegated to.JSONArray array()
JSONArray being 
 rendered to a response. The object may not necessarily be instantiated
 until requested.
JSONArray being delegated to.void close()
void flush()
flush() to this IJSONWriter's
 PrintWriter.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||