|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JSONArtifact
Interface class to define a set of generic apis both JSONObject and JSON array implement. This is namely so that functions such as serialize, which are common between the two, can be easily invoked.
Method Summary | |
---|---|
java.lang.String |
serialize()
Convert this object into a String of JSON text. |
java.lang.String |
serialize(boolean verbose)
Convert this object into a String of JSON text, specifying verbosity. |
void |
serialize(java.io.OutputStream os)
Convert this object into a stream of JSON text. |
void |
serialize(java.io.OutputStream os,
boolean verbose)
Convert this object into a stream of JSON text. |
void |
serialize(java.io.Writer writer)
Convert this object into a stream of JSON text. |
void |
serialize(java.io.Writer writer,
boolean verbose)
Convert this object into a stream of JSON text, specifying verbosity. |
Method Detail |
---|
void serialize(java.io.OutputStream os) throws java.io.IOException
os
- The output stream to serialize data to.
java.io.IOException
- Thrown on IO errors during serialization.void serialize(java.io.OutputStream os, boolean verbose) throws java.io.IOException
os
- The output stream to serialize data to.verbose
- Whether or not to write the JSON text in a verbose format.
java.io.IOException
- Thrown on IO errors during serialization.void serialize(java.io.Writer writer) throws java.io.IOException
writer
- The writer which to serialize the JSON text to.
java.io.IOException
- Thrown on IO errors during serialization.void serialize(java.io.Writer writer, boolean verbose) throws java.io.IOException
writer
- The writer which to serialize the JSON text to.
java.io.IOException
- Thrown on IO errors during serialization.java.lang.String serialize(boolean verbose) throws java.io.IOException
verbose
- Whether or not to serialize in compressed for formatted Strings.
java.io.IOException
- Thrown on IO errors during serialization.java.lang.String serialize() throws java.io.IOException
java.io.IOException
- Thrown on IO errors during serialization.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |