net.minidev.json.reader
public class JsonWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static JsonWriterI<Object> |
arrayWriter |
static JsonWriterI<Object> |
beansWriter
Json-Smart V1 Beans serialiser
|
static JsonWriterI<Enum<?>> |
EnumWriter |
static JsonWriterI<Iterable<? extends Object>> |
JSONIterableWriter |
static JsonWriterI<JSONAwareEx> |
JSONJSONAwareExWriter |
static JsonWriterI<JSONAware> |
JSONJSONAwareWriter |
static JsonWriterI<Map<String,? extends Object>> |
JSONMapWriter |
static JsonWriterI<JSONStreamAwareEx> |
JSONStreamAwareExWriter |
static JsonWriterI<JSONStreamAwareEx> |
JSONStreamAwareWriter |
| Constructor and Description |
|---|
JsonWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterfaceWriterFirst(Class<?> cls,
JsonWriterI<?> writer) |
void |
addInterfaceWriterLast(Class<?> cls,
JsonWriterI<?> writer) |
JsonWriterI |
getWrite(Class cls) |
JsonWriterI |
getWriterByInterface(Class<?> clazz) |
void |
init() |
<T> void |
registerWriter(JsonWriterI<T> writer,
Class<?>... cls) |
static void |
writeJSONKV(String key,
Object value,
Appendable out,
JSONStyle compression)
Write a Key : value entry to a stream
|
public static final JsonWriterI<JSONStreamAwareEx> JSONStreamAwareWriter
public static final JsonWriterI<JSONStreamAwareEx> JSONStreamAwareExWriter
public static final JsonWriterI<JSONAwareEx> JSONJSONAwareExWriter
public static final JsonWriterI<JSONAware> JSONJSONAwareWriter
public static final JsonWriterI<Iterable<? extends Object>> JSONIterableWriter
public static final JsonWriterI<Enum<?>> EnumWriter
public static final JsonWriterI<Map<String,? extends Object>> JSONMapWriter
public static final JsonWriterI<Object> beansWriter
public static final JsonWriterI<Object> arrayWriter
public JsonWriterI getWriterByInterface(Class<?> clazz)
public JsonWriterI getWrite(Class cls)
public void init()
public void addInterfaceWriterFirst(Class<?> cls, JsonWriterI<?> writer)
public void addInterfaceWriterLast(Class<?> cls, JsonWriterI<?> writer)
public <T> void registerWriter(JsonWriterI<T> writer, Class<?>... cls)
public static void writeJSONKV(String key, Object value, Appendable out, JSONStyle compression) throws IOException
IOExceptionCopyright © 2014 Chemouni Uriel. All Rights Reserved.