[#BloombergLP-baljsn-SimpleFormatter-2constructor-069]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter]::SimpleFormatter
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;baljsn&lowbar;simpleformatter&period;h&gt;`

Create a `SimpleFormatter` object using the specified `stream`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/baljsn/SimpleFormatter/2constructor-066.adoc[SimpleFormatter](
    std::ostream& stream,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/baljsn/SimpleFormatter/2constructor-066.adoc[_» more&period;&period;&period;_]#

Create a `SimpleFormatter` object having the same value as the specified `original` object&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/baljsn/SimpleFormatter/2constructor-0e.adoc[SimpleFormatter](
    xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/baljsn/SimpleFormatter/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create a `SimpleFormatter` object using the specified `stream`&period; Optionally specify `encoderOptions` to configure the output options &hyphen; if `encoderOptions` is not supplied, a default&hyphen;constructed `EncoderOptions` object will be used&period; Note that the `encodeEmptyArrays` attribute in the `encoderOptions` is ignored&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/baljsn/SimpleFormatter/2constructor-06d.adoc[SimpleFormatter](
    std::ostream& stream,
    xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& encoderOptions,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/baljsn/SimpleFormatter/2constructor-06d.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
