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>

Inheritance diagram for decaf::util::zip::CheckedOutputStream:
Inheritance graph
[legend]

Public Member Functions

 CheckedOutputStream (decaf::io::OutputStream *outputStream, Checksum *sum, bool own=false)
 Create a new instance of a CheckedOutputStream.
virtual ~CheckedOutputStream ()
ChecksumgetChecksum () const

Protected Member Functions

virtual void doWriteByte (unsigned char value)
virtual void doWriteArrayBounded (const unsigned char *buffer, int size, int offset, int length)

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

decaf::util::zip::CheckedOutputStream::CheckedOutputStream ( decaf::io::OutputStream outputStream,
Checksum sum,
bool  own = false 
)

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]

Reimplemented from decaf::io::FilterOutputStream.

virtual void decaf::util::zip::CheckedOutputStream::doWriteByte ( unsigned char  value  )  [protected, virtual]

Reimplemented from decaf::io::FilterOutputStream.

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:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1