2005/5/9

     
 

class ByteBufferAppendWriter

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

acdk::io::ByteBufferAppendWriter Class Reference

#include <ByteBufferWriter.h>

Inheritance diagram for acdk::io::ByteBufferAppendWriter:

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

 ByteBufferAppendWriter (IN(RFlexByteBuffer) 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 ()
RFlexByteBuffer getBuffer ()

Protected Attributes

RFlexByteBuffer _buffer


Constructor & Destructor Documentation

acdk::io::ByteBufferAppendWriter::ByteBufferAppendWriter IN(RFlexByteBuffer buffer  )  [inline]
 


Member Function Documentation

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

Implements acdk::io::AbstractWriter.

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

Implements acdk::io::AbstractWriter.

RFlexByteBuffer acdk::io::ByteBufferAppendWriter::getBuffer  )  [inline]
 

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

Reimplemented from acdk::io::Writer.

virtual void acdk::io::ByteBufferAppendWriter::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::ByteBufferAppendWriter::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::ByteBufferAppendWriter::write const byte cstr,
int  offset,
int  len
[virtual]
 

Reimplemented from acdk::io::AbstractWriter.


Member Data Documentation

RFlexByteBuffer acdk::io::ByteBufferAppendWriter::_buffer [protected]