Class JsonWriterFactory
java.lang.Object
org.opendaylight.yangtools.yang.data.codec.gson.JsonWriterFactory
Factory Method class for JsonWriter creation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.stream.JsonWritercreateJsonWriter(Writer writer) Create a new JsonWriter, which writes to the specified output writer.static com.google.gson.stream.JsonWritercreateJsonWriter(Writer writer, int indentSize) Create a new JsonWriter, which writes to the specified output writer.
-
Method Details
-
createJsonWriter
Create a new JsonWriter, which writes to the specified output writer.- Parameters:
writer- Output writer- Returns:
- A JsonWriter instance
-
createJsonWriter
Create a new JsonWriter, which writes to the specified output writer.- Parameters:
writer- Output writerindentSize- size of the indent- Returns:
- A JsonWriter instance
-