class JsonGeneratorFactoryImpl extends java.lang.Object implements JsonGeneratorFactory
| Modifier and Type | Field and Description |
|---|---|
private BufferPool |
bufferPool |
private java.util.Map<java.lang.String,?> |
config |
private boolean |
prettyPrinting |
| Constructor and Description |
|---|
JsonGeneratorFactoryImpl(java.util.Map<java.lang.String,?> config,
boolean prettyPrinting,
BufferPool bufferPool) |
| Modifier and Type | Method and Description |
|---|---|
JsonGenerator |
createGenerator(java.io.OutputStream out)
Creates a JSON generator to write JSON text to a byte stream.
|
JsonGenerator |
createGenerator(java.io.OutputStream out,
java.nio.charset.Charset charset)
Creates a JSON generator to write JSON text to a byte stream.
|
JsonGenerator |
createGenerator(java.io.Writer writer)
Creates a JSON generator to write JSON text to a character stream.
|
java.util.Map<java.lang.String,?> |
getConfigInUse()
Returns a read-only map of supported provider specific configuration
properties that are used to configure the JSON generators.
|
private final boolean prettyPrinting
private final java.util.Map<java.lang.String,?> config
private final BufferPool bufferPool
JsonGeneratorFactoryImpl(java.util.Map<java.lang.String,?> config,
boolean prettyPrinting,
BufferPool bufferPool)
public JsonGenerator createGenerator(java.io.Writer writer)
JsonGeneratorFactorycreateGenerator in interface JsonGeneratorFactorywriter - i/o writer to which JSON is writtenpublic JsonGenerator createGenerator(java.io.OutputStream out)
JsonGeneratorFactorycreateGenerator in interface JsonGeneratorFactoryout - i/o stream to which JSON is writtenpublic JsonGenerator createGenerator(java.io.OutputStream out, java.nio.charset.Charset charset)
JsonGeneratorFactorycreateGenerator in interface JsonGeneratorFactoryout - i/o stream to which JSON is writtencharset - a charsetpublic java.util.Map<java.lang.String,?> getConfigInUse()
JsonGeneratorFactorygetConfigInUse in interface JsonGeneratorFactory