|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.json4j.JSONWriter org.apache.wink.json4j.JSONStringer
public class JSONStringer
This class implements a JSONSringer, a basic convenience subclass of JSONWriter to allow for generating JSON strings quickly. This class exists for API compatibility to other popular JSON parsers.
Field Summary |
---|
Fields inherited from class org.apache.wink.json4j.JSONWriter |
---|
writer |
Constructor Summary | |
---|---|
JSONStringer()
|
Method Summary | |
---|---|
void |
close()
Over-ride to do nothing for the stringer. |
java.lang.String |
toString()
Return a string of the stringer contents. |
Methods inherited from class org.apache.wink.json4j.JSONWriter |
---|
array, endArray, endObject, flush, key, object, value, value, value, value, value, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JSONStringer()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void close() throws java.io.IOException, java.lang.IllegalStateException
close
in class JSONWriter
java.io.IOException
- Thrown if an IO error occurs on the underlying writer.
java.lang.IllegalStateException
- Thrown if the writer position is in an object and a key has been placed, but a value has not been assigned or if the writer was already closed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |