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:
Inheritance graph
[legend]

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:
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]

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:

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