VMime
outputStream Class Referenceabstract
Inheritance diagram for outputStream:
Collaboration diagram for outputStream:

Public Member Functions

void write (const byte_t *const data, const size_t count)
 
void write (const char *const data, const size_t count)
 
template<int N>
void write (const char(&data)[N])
 
virtual void flush ()=0
 
- Public Member Functions inherited from stream
virtual ~stream ()
 
virtual size_t getBlockSize ()
 

Protected Member Functions

virtual void writeImpl (const byte_t *const data, const size_t count)=0
 
- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

Simple output stream.

Member Function Documentation

void write ( const byte_t *const  data,
const size_t  count 
)

Write data to the stream.

Parameters
databuffer containing data to write
countnumber of bytes to write

References outputStream::writeImpl().

Referenced by vmime::utility::bufferedStreamCopy(), vmime::utility::bufferedStreamCopyRange(), uuEncoder::decode(), b64Encoder::encode(), uuEncoder::encode(), stringProxy::extract(), and vmime::utility::operator<<().

void write ( const char *const  data,
const size_t  count 
)

Write data to the stream.

Parameters
databuffer containing data to write
countnumber of bytes to write

References outputStream::writeImpl().

void write ( const char(&)  data[N])

Write data to the stream.

Parameters
databuffer containing data to write
Nnumber of bytes to write, including terminating null (value is induced by compiler)
virtual void writeImpl ( const byte_t *const  data,
const size_t  count 
)
protectedpure virtual

Write data to the stream.

This is the method to be implemented is subclasses.

Parameters
databuffer containing data to write
countnumber of bytes to write

Implemented in LFToCRLFFilteredOutputStream, CRLFToLFFilteredOutputStream, dotFilteredOutputStream, SMTPChunkingOutputStreamAdapter, outputStreamSocketAdapter, outputStreamAdapter, outputStreamByteArrayAdapter, and outputStreamStringAdapter.

Referenced by outputStream::write().


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