activemq-cpp-3.4.0

decaf::io::BufferedOutputStream Class Reference

Wrapper around another output stream that buffers output before writing to the target output stream. More...

#include <src/main/decaf/io/BufferedOutputStream.h>

Inheritance diagram for decaf::io::BufferedOutputStream:

Public Member Functions

 BufferedOutputStream (OutputStream *stream, bool own=false)
 Constructor.
 BufferedOutputStream (OutputStream *stream, int bufferSize, bool own=false)
 Constructor.
virtual ~BufferedOutputStream ()

virtual void flush ()
 inheritDoc}
virtual void doWriteByte (unsigned char c)
virtual void doWriteArray (const unsigned char *buffer, int size)
virtual void doWriteArrayBounded (const unsigned char *buffer, int size, int offset, int length)

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:
streamThe target output stream.
ownIndicates if this class owns the stream pointer.
decaf::io::BufferedOutputStream::BufferedOutputStream ( OutputStream stream,
int  bufferSize,
bool  own = false 
)

Constructor.

Parameters:
streamThe target output stream.
bufferSizeThe size for the internal buffer.
ownIndicates if this class owns the stream pointer.
Exceptions:
IllegalArgumentExceptionif 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]

Reimplemented from decaf::io::FilterOutputStream.

virtual void decaf::io::BufferedOutputStream::doWriteArrayBounded ( const unsigned char *  buffer,
int  size,
int  offset,
int  length 
) [protected, virtual]

Reimplemented from decaf::io::FilterOutputStream.

virtual void decaf::io::BufferedOutputStream::doWriteByte ( unsigned char  c) [protected, virtual]

Reimplemented from decaf::io::FilterOutputStream.

virtual void decaf::io::BufferedOutputStream::flush ( ) [virtual]

inheritDoc}

Reimplemented from decaf::io::FilterOutputStream.


The documentation for this class was generated from the following file: