Class ContentsJsonWriter
- java.lang.Object
-
- com.aspectran.core.util.json.JsonWriter
-
- com.aspectran.core.activity.response.transform.json.ContentsJsonWriter
-
- All Implemented Interfaces:
java.io.Flushable
public class ContentsJsonWriter extends JsonWriter
Converts a ProcessResult object to a JSON formatted string.Created: 2008. 06. 12 PM 8:20:54
-
-
Constructor Summary
Constructors Constructor Description ContentsJsonWriter(java.io.Writer writer)
Instantiates a new ContentsJsonWriter.ContentsJsonWriter(java.io.Writer writer, boolean prettyPrint)
Instantiates a new ContentsJsonWriter.ContentsJsonWriter(java.io.Writer writer, java.lang.String indentString)
Instantiates a new ContentsJsonWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentsJsonWriter
write(java.lang.Object object)
Write an object to a character stream.-
Methods inherited from class com.aspectran.core.util.json.JsonWriter
close, closeCurlyBracket, closeSquareBracket, flush, indent, nextLine, openCurlyBracket, openSquareBracket, stringify, stringify, stringify, writeComma, writeName, writeNull, writeValue, writeValue, writeValue
-
-
-
-
Constructor Detail
-
ContentsJsonWriter
public ContentsJsonWriter(java.io.Writer writer)
Instantiates a new ContentsJsonWriter.- Parameters:
writer
- aWriter
object that can send character text
-
ContentsJsonWriter
public ContentsJsonWriter(java.io.Writer writer, boolean prettyPrint)
Instantiates a new ContentsJsonWriter.- Parameters:
writer
- aWriter
object that can send character textprettyPrint
- enables or disables pretty-printing
-
ContentsJsonWriter
public ContentsJsonWriter(java.io.Writer writer, java.lang.String indentString)
Instantiates a new ContentsJsonWriter.- Parameters:
writer
- aWriter
object that can send character textindentString
- the string that should be used for indentation when pretty-printing is enabled
-
-
Method Detail
-
write
public ContentsJsonWriter write(java.lang.Object object) throws java.io.IOException, java.lang.reflect.InvocationTargetException
Description copied from class:JsonWriter
Write an object to a character stream.- Overrides:
write
in classJsonWriter
- Parameters:
object
- the object to write to a character-output stream.- Returns:
- this JsonWriter
- Throws:
java.io.IOException
- an I/O error occurs.java.lang.reflect.InvocationTargetException
- the invocation target exception
-
-