decaf::util::zip::CheckedOutputStream Class Reference
An implementation of a FilterOutputStream that will maintain a Checksum of the bytes written, the Checksum can then be used to verify the integrity of the output stream.
More...
#include <src/main/decaf/util/zip/CheckedOutputStream.h>
Detailed Description
An implementation of a FilterOutputStream that will maintain a Checksum of the bytes written, the Checksum can then be used to verify the integrity of the output stream.
- Since:
- 1.0
Constructor & Destructor Documentation
Create a new instance of a CheckedOutputStream.
- Parameters:
-
| outputStream | The OutputStream instance to Wrap. |
| sum | The Checksum instance to use (does not take ownership of the Pointer). |
| own | Indicates if this filer should take ownership of the InputStream. |
- Exceptions:
-
| NullPointerException | if the Checksum pointer is NULL. |
| virtual decaf::util::zip::CheckedOutputStream::~CheckedOutputStream |
( |
|
) |
[virtual] |
Member Function Documentation
| virtual void decaf::util::zip::CheckedOutputStream::doWriteArrayBounded |
( |
const unsigned char * |
buffer, |
|
|
int |
size, |
|
|
int |
offset, |
|
|
int |
length | |
|
) |
| | [protected, virtual] |
| virtual void decaf::util::zip::CheckedOutputStream::doWriteByte |
( |
unsigned char |
value |
) |
[protected, virtual] |
| Checksum* decaf::util::zip::CheckedOutputStream::getChecksum |
( |
|
) |
const [inline] |
- Returns:
- a pointer to the Checksum instance in use by this object.
The documentation for this class was generated from the following file: