Qore Programming Language Reference Manual  0.8.12
QC_InputStream.dox.h
1 namespace Qore {
4 
8 class InputStream {
9 
10 public:
12 
27 abstract *binary bulkRead(int limit, timeout timeout_ms = -1);
28 
29 public:
31 
35 abstract nothing close();
36 
37 public:
39 
41  constructor();
42 
43 public:
45 
58 abstract int read(timeout timeout_ms = -1);
59 };
60 };
62 namespace Qore {
66 
68 
71 nothing dump(Qore::InputStream is);
72 
74 
77 nothing dump_bulk(Qore::InputStream is);
78 
80 };
binary binary()
Always returns an empty binary object (of zero length)
nothing dump_bulk(Qore::InputStream is)
Dumps an input stream to stdout by bulk reading bytes (two at a time) from the stream until the end i...
constructor()
Constructor.
abstract *binary bulkRead(int limit, timeout timeout_ms=-1)
Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more byt...
abstract int read(timeout timeout_ms=-1)
Reads a single byte from the input stream; returns -1 if the end of the stream has been reached...
abstract nothing close()
Closes the input stream and releases any resources.
nothing dump(Qore::InputStream is)
Dumps an input stream to stdout by reading individual bytes from the stream until the end is reached...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
This class defines an abstract interface for input streams.
Definition: QC_InputStream.dox.h:8