Qore Programming Language Reference Manual  1.6.0
QC_StringOutputStream.dox.h
1 namespace Qore {
4 
27 
28 public:
30 
36 nothing close();
37 
38 public:
40 
46  constructor();
47 
48 public:
50 
56  constructor(string encoding);
57 
58 public:
60 
75 string getData();
76 
77 public:
79 
94 string getEncoding();
95 
96 public:
98 
114 bool hasData();
115 
116 public:
118 
133 nothing write(binary data);
134 };
135 }
This class implements the OutputStream interface for writing bytes to a String buffer.
Definition: QC_StringOutputStream.dox.h:26
constructor()
Creates the StringOutputStream.
binary binary()
Always returns an empty binary object (of zero length)
nothing close()
Closes the output stream and releases any resources.
nothing write(binary data)
Writes bytes to the output stream.
This class defines an abstract interface for output streams.
Definition: QC_OutputStream.dox.h:18
string getData()
Returns the data written to the stream, clearing the internal buffer.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
bool hasData()
Returns True if the stream already has data.
string getEncoding()
Returns the character encoding for the StringOutputStream.