Class ContentsJsonWriter
- java.lang.Object
-
- com.aspectran.core.util.json.JsonWriter
-
- com.aspectran.core.activity.response.transform.json.ContentsJsonWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(ProcessResult processResult)Write aProcessResultobject to the character-output stream.<T extends JsonWriter>
Twrite(java.lang.Object object)Write an object to a character stream.-
Methods inherited from class com.aspectran.core.util.json.JsonWriter
beginArray, beginBlock, close, dateFormat, dateTimeFormat, endArray, endBlock, flush, indent, indentString, nextLine, nullWritable, prettyPrint, toString, writeComma, writeName, writeNull, writeNull, writeValue, writeValue, writeValue
-
-
-
-
Method Detail
-
write
public <T extends JsonWriter> T write(java.lang.Object object) throws java.io.IOException
Description copied from class:JsonWriterWrite an object to a character stream.- Overrides:
writein classJsonWriter- Parameters:
object- the object to write to a character-output stream.- Throws:
java.io.IOException- if an I/O error has occurred.
-
write
public void write(ProcessResult processResult) throws java.io.IOException
Write aProcessResultobject to the character-output stream.- Parameters:
processResult- theProcessResultobject to write to a character-output stream- Throws:
java.io.IOException- if an I/O error has occurred
-
-