public class JsonRenderImpl extends Object implements JsonRender
| Constructor and Description |
|---|
JsonRenderImpl() |
JsonRenderImpl(Writer writer,
JsonFormat format) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendNull() |
protected void |
appendPair(boolean needPairEnd,
String name,
Object value) |
protected String |
doDateFormat(Date date,
DateFormat df) |
protected void |
doIntent() |
JsonFormat |
getFormat() |
Writer |
getWriter() |
void |
render(Object obj) |
void |
setFormat(JsonFormat format) |
void |
setWriter(Writer writer) |
protected String |
value2string(JsonEntityField jef,
Object value) |
public JsonRenderImpl()
public JsonRenderImpl(Writer writer, JsonFormat format)
public JsonFormat getFormat()
public void setFormat(JsonFormat format)
setFormat in interface JsonRenderpublic Writer getWriter()
public void setWriter(Writer writer)
setWriter in interface JsonRenderpublic void render(Object obj) throws IOException
render in interface JsonRenderIOExceptionprotected void appendPair(boolean needPairEnd,
String name,
Object value)
throws IOException
IOExceptionprotected String value2string(JsonEntityField jef, Object value)
protected void doIntent()
throws IOException
IOExceptionprotected void appendNull()
throws IOException
IOExceptionprotected String doDateFormat(Date date, DateFormat df)
Copyright © 2017. All rights reserved.