|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.markup.JSONWriterImpl
public class JSONWriterImpl
Implementation of IJSONWriter
.
Field Summary | |
---|---|
protected PrintWriter |
_writer
Outputstream writer. |
Constructor Summary | |
---|---|
JSONWriterImpl(PrintWriter writer)
Creates a new instance that will write all content to the specified PrintWriter . |
Method Summary | |
---|---|
JSONArray |
array()
Provides access to the core outer JSONArray being
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 this IJSONWriter 's
PrintWriter . |
protected PrintWriter |
getWriter()
The outputstream being used to write this instance's content. |
JSONObject |
object()
Provides access to the core outer JSONObject being
rendered to a response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PrintWriter _writer
Constructor Detail |
---|
public JSONWriterImpl(PrintWriter writer)
PrintWriter
.
writer
- The outputstream to write to.Method Detail |
---|
public void close()
close
in interface IJSONWriter
public 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.
object
in interface IJSONWriter
JSONObject
being delegated to.public JSONArray array()
JSONArray
being
rendered to a response. The object may not necessarily be instantiated
until requested.
array
in interface IJSONWriter
JSONArray
being delegated to.public void flush()
IJSONWriter
flush()
to this IJSONWriter
's
PrintWriter
.
flush
in interface IJSONWriter
protected PrintWriter getWriter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |