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 void
write(ProcessResult processResult)
Write aProcessResult
object to the character-output stream.<T extends JsonWriter>
Twrite(java.lang.Object object)
Writes an object to the writer.-
Methods inherited from class com.aspectran.core.util.json.JsonWriter
beginArray, beginObject, close, dateFormat, dateTimeFormat, endArray, endObject, flush, indentString, nullWritable, prettyPrint, toString, writeJson, 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:JsonWriter
Writes an object to the writer.- Overrides:
write
in classJsonWriter
- Parameters:
object
- the object to write to the writer.- Throws:
java.io.IOException
- if an I/O error has occurred.
-
write
public void write(ProcessResult processResult) throws java.io.IOException
Write aProcessResult
object to the character-output stream.- Parameters:
processResult
- theProcessResult
object to write to the writer- Throws:
java.io.IOException
- if an I/O error has occurred
-
-