class JsonWriterFactoryImpl extends java.lang.Object implements JsonWriterFactory
| Modifier and Type | Field and Description |
|---|---|
private BufferPool |
bufferPool |
private java.util.Map<java.lang.String,?> |
config |
private boolean |
prettyPrinting |
| Constructor and Description |
|---|
JsonWriterFactoryImpl(java.util.Map<java.lang.String,?> config,
boolean prettyPrinting,
BufferPool bufferPool) |
| Modifier and Type | Method and Description |
|---|---|
JsonWriter |
createWriter(java.io.OutputStream out)
|
JsonWriter |
createWriter(java.io.OutputStream out,
java.nio.charset.Charset charset)
|
JsonWriter |
createWriter(java.io.Writer writer)
|
java.util.Map<java.lang.String,?> |
getConfigInUse()
Returns read-only map of supported provider specific configuration
properties that are used to configure the created JSON writer objects.
|
private final java.util.Map<java.lang.String,?> config
private final boolean prettyPrinting
private final BufferPool bufferPool
JsonWriterFactoryImpl(java.util.Map<java.lang.String,?> config,
boolean prettyPrinting,
BufferPool bufferPool)
public JsonWriter createWriter(java.io.Writer writer)
JsonWriterFactoryobject or
array structure to the specified character stream.
The writer is configured with the factory configuration.createWriter in interface JsonWriterFactorywriter - to which JSON object or array is writtenpublic JsonWriter createWriter(java.io.OutputStream out)
JsonWriterFactoryobject or
array structure to the specified byte stream.
Characters written to the stream are encoded into bytes using UTF-8
encoding. The writer is configured with the factory configuration.createWriter in interface JsonWriterFactoryout - to which JSON object or array is writtenpublic JsonWriter createWriter(java.io.OutputStream out, java.nio.charset.Charset charset)
JsonWriterFactoryobject or
array structure to the specified byte stream.
Characters written to the stream are encoded into bytes using the
specified charset. The writer is configured with the factory
configuration.createWriter in interface JsonWriterFactoryout - to which JSON object or array is writtencharset - a charsetpublic java.util.Map<java.lang.String,?> getConfigInUse()
JsonWriterFactorygetConfigInUse in interface JsonWriterFactory