2005/5/9

     
 

class ByteBufferWriter

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::io::ByteBufferWriter Class Reference

#include <ByteBufferWriter.h>

Inheritance diagram for acdk::io::ByteBufferWriter:

acdk::io::AbstractWriter acdk::lang::Object acdk::io::Writer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Reader interface for a ReadByteBuffer.


Public Member Functions

 ByteBufferWriter (IN(RWriteByteBuffer) buffer)
virtual void close ()
virtual void flush ()
virtual void write (const byte *cstr, int offset, int len)
virtual void write (byte c)
 default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

virtual void write (IN(RbyteArray) ch, int offset=0, int len=-1)
 default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

virtual RStorage getWriterStorage ()
RWriteByteBuffer getBuffer ()

Protected Attributes

RWriteByteBuffer _buffer
int _curPos


Constructor & Destructor Documentation

acdk::io::ByteBufferWriter::ByteBufferWriter IN(RWriteByteBuffer buffer  )  [inline]
 


Member Function Documentation

virtual void acdk::io::ByteBufferWriter::close  )  [inline, virtual]
 

Implements acdk::io::AbstractWriter.

virtual void acdk::io::ByteBufferWriter::flush  )  [inline, virtual]
 

Implements acdk::io::AbstractWriter.

RWriteByteBuffer acdk::io::ByteBufferWriter::getBuffer  )  [inline]
 

virtual RStorage acdk::io::ByteBufferWriter::getWriterStorage  )  [inline, virtual]
 

Reimplemented from acdk::io::Writer.

virtual void acdk::io::ByteBufferWriter::write IN(RbyteArray ch,
int  offset = 0,
int  len = -1
[virtual]
 

default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

Reimplemented from acdk::io::AbstractWriter.

virtual void acdk::io::ByteBufferWriter::write byte  c  )  [virtual]
 

default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

Implements acdk::io::AbstractWriter.

virtual void acdk::io::ByteBufferWriter::write const byte cstr,
int  offset,
int  len
[virtual]
 

Reimplemented from acdk::io::AbstractWriter.


Member Data Documentation

RWriteByteBuffer acdk::io::ByteBufferWriter::_buffer [protected]
 

int acdk::io::ByteBufferWriter::_curPos [protected]