[#BloombergLP-balxml-Formatter_StreamHolder]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::Formatter&lowbar;StreamHolder
:relfileprefix: ../../
:mrdocs:

This component&hyphen;private class provides a mechanism for holding the `bsl&colon;&colon;ostream` used by the `Formatter` to emit XML documents&period; Objects of `Formatter&lowbar;StreamHolder` type can be constructed with either a `bsl&colon;&colon;streambuf &ast;` or a `bsl&colon;&colon;ostream &ast;`&period; If a stream holder is constructed with a `bsl&colon;&colon;streambuf &ast;`, then it owns its held `bsl&colon;&colon;ostream`, which is constructed with the supplied stream buffer&period; If a stream holder is constructed with a `bsl&colon;&colon;ostream &ast;`, its held `bsl&colon;&colon;ostream` is the supplied stream&period;

== Synopsis

Declared in `&lt;balxml&lowbar;formatter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Formatter&lowbar;StreamHolder;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balxml/Formatter_StreamHolder/2constructor-0f5.adoc[`Formatter&lowbar;StreamHolder`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/balxml/Formatter_StreamHolder/stream-0a.adoc[`stream`] 
| `stream` overloads
|===



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