| Modifier and Type | Method and Description |
|---|---|
void |
JsonWriter.close()
Close output writer.
|
JsonValue |
JsonGenerator.createJsonObject(Object bean)
Get HashMap representation for Java Bean object.
|
void |
JsonWriter.flush()
Flush output writer.
|
void |
JsonParser.parse(InputStream in,
JsonHandler handler)
Parse given character stream and build object.
|
void |
JsonParser.parse(Reader reader,
JsonHandler handler)
Parse given character stream and build object.
|
void |
JsonWriter.writeEndArray()
Write the end of JSON array ']'.
|
void |
JsonWriter.writeEndObject()
Write the end of JSON object '}'.
|
void |
JsonWriter.writeKey(String key)
Write the key.
|
void |
JsonWriter.writeNull()
Write the null data to stream.
|
void |
JsonWriter.writeStartArray()
Write the start of JSON array '['.
|
void |
JsonWriter.writeStartObject()
Write the start of JSON object '{'.
|
void |
JsonWriter.writeString(String value)
Write the String to stream.
|
void |
JsonWriter.writeValue(boolean value)
Write the value of boolean type to stream.
|
void |
JsonWriter.writeValue(double value)
Write the value of double type to stream.
|
void |
JsonWriter.writeValue(long value)
Write the value of long type to stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsonWriterImpl.close()
Close output writer.
|
static Object |
ObjectBuilder.createArray(Class<?> clazz,
JsonValue jsonArray)
Create array of Java Object from JSON source include multi-dimension
array.
|
static <T extends Collection<?>> |
ObjectBuilder.createCollection(Class<T> collectionClass,
Type genericType,
JsonValue jsonArray)
Create instance of
collectionClass from JSON representation. |
JsonValue |
JsonGeneratorImpl.createJsonArray(Collection<?> collection)
Create JSON array from specified collection.
|
JsonValue |
JsonGeneratorImpl.createJsonArray(Object array)
Create JSON array from specified object.
|
JsonValue |
JsonGeneratorImpl.createJsonObject(Object object)
Create JSON object from specified object.
|
JsonValue |
JsonGeneratorImpl.createJsonObjectFromMap(Map<String,?> map)
Create JSON object from specified map.
|
JsonValue |
JsonGeneratorImpl.createJsonObjectFromString(String s)
Create JSON object from specified string imply it is JSON object in String
format.
|
static <T> T |
ObjectBuilder.createObject(Class<T> clazz,
JsonValue jsonValue)
Create Java Bean from Json Source.
|
static <T extends Map<String,?>> |
ObjectBuilder.createObject(Class<T> mapClass,
Type genericType,
JsonValue jsonObject)
Create instance of
mapClass from JSON representation. |
void |
JsonWriterImpl.flush()
Flush output writer.
|
void |
JsonParserImpl.parse(InputStream sream,
JsonHandler eventHandler)
Parse given character stream and build object.
|
void |
JsonParserImpl.parse(Reader reader,
JsonHandler eventHandler)
Parse given character stream and build object.
|
void |
JsonWriterImpl.writeEndArray()
Write the end of JSON array ']'.
|
void |
JsonWriterImpl.writeEndObject()
Write the end of JSON object '}'.
|
void |
JsonWriterImpl.writeKey(String key)
Write the key.
|
void |
JsonWriterImpl.writeNull()
Write the null data to stream.
|
void |
JsonWriterImpl.writeStartArray()
Write the start of JSON array '['.
|
void |
JsonWriterImpl.writeStartObject()
Write the start of JSON object '{'.
|
void |
JsonWriterImpl.writeString(String value)
Write the String to stream.
|
void |
JsonWriterImpl.writeValue(boolean value)
Write the value of boolean type to stream.
|
void |
JsonWriterImpl.writeValue(double value)
Write the value of double type to stream.
|
void |
JsonWriterImpl.writeValue(long value)
Write the value of long type to stream.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
JsonValue.writeTo(JsonWriter writer)
Write value in given writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BooleanValue.writeTo(JsonWriter writer)
Write value in given writer.
|
void |
DoubleValue.writeTo(JsonWriter writer)
Write value in given writer.
|
void |
LongValue.writeTo(JsonWriter writer)
Write value in given writer.
|
void |
ObjectValue.writeTo(JsonWriter writer)
Write value in given writer.
|
void |
StringValue.writeTo(JsonWriter writer)
Write value in given writer.
|
abstract void |
NumericValue.writeTo(JsonWriter writer)
Write value in given writer.
|
void |
NullValue.writeTo(JsonWriter writer)
Write value in given writer.
|
void |
ArrayValue.writeTo(JsonWriter writer)
Write value in given writer.
|
Copyright © 2016 eXo Platform SAS. All Rights Reserved.