| Qore Programming Language Reference Manual 1.0.8

QC_StringOutputStream.dox.h
1 namespace Qore {
4
25 class StringOutputStream : public OutputStream {
26
27 public:
29
34 nothing close();
35
36 public:
38
42 constructor();
43
44 public:
46
50 constructor(string encoding);
51
52 public:
54
68 string getData();
69
70 public:
72
85 string getEncoding();
86
87 public:
89
103 nothing write(binary data);
104 };
105 }
Qore::StringOutputStream
This class implements the OutputStream interface for writing bytes to a String buffer.
Definition: QC_StringOutputStream.dox.h:25
Qore::StringOutputStream::constructor
constructor()
Creates the StringOutputStream.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore::StringOutputStream::close
nothing close()
Closes the output stream and releases any resources.
Qore::StringOutputStream::write
nothing write(binary data)
Writes bytes to the output stream.
Qore::OutputStream
This class defines an abstract interface for output streams.
Definition: QC_OutputStream.dox.h:18
Qore::StringOutputStream::getData
string getData()
Returns the data written to the stream, clearing the internal buffer.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::StringOutputStream::getEncoding
string getEncoding()
Returns the character encoding for the StringOutputStream.