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