Wrapper around another output stream that buffers output before writing to the target output stream.
More...
#include <src/main/decaf/io/BufferedOutputStream.h>
Detailed Description
Wrapper around another output stream that buffers output before writing to the target output stream.
Constructor & Destructor Documentation
| decaf::io::BufferedOutputStream::BufferedOutputStream |
( |
OutputStream * |
stream, |
|
|
bool |
own = false |
|
) |
| |
Constructor.
- Parameters:
-
| stream | The target output stream. |
| own | Indicates if this class owns the stream pointer. |
| decaf::io::BufferedOutputStream::BufferedOutputStream |
( |
OutputStream * |
stream, |
|
|
int |
bufferSize, |
|
|
bool |
own = false |
|
) |
| |
Constructor.
- Parameters:
-
| stream | The target output stream. |
| bufferSize | The size for the internal buffer. |
| own | Indicates if this class owns the stream pointer. |
- Exceptions:
-
| IllegalArgumentException | if the bufferSize given is negative. |
| virtual decaf::io::BufferedOutputStream::~BufferedOutputStream |
( |
| ) |
[virtual] |
Member Function Documentation
| virtual void decaf::io::BufferedOutputStream::doWriteArray |
( |
const unsigned char * |
buffer, |
|
|
int |
size |
|
) |
| [protected, virtual] |
| virtual void decaf::io::BufferedOutputStream::doWriteArrayBounded |
( |
const unsigned char * |
buffer, |
|
|
int |
size, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| [protected, virtual] |
| virtual void decaf::io::BufferedOutputStream::doWriteByte |
( |
unsigned char |
c | ) |
[protected, virtual] |
| virtual void decaf::io::BufferedOutputStream::flush |
( |
| ) |
[virtual] |
The documentation for this class was generated from the following file: