artefaktur
software engineer &        architecture

 
 
 
 

class StringReadByteBuffer

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

acdk::lang::StringReadByteBuffer Class Reference

#include <ByteBuffer.h>

Inheritance diagram for acdk::lang::StringReadByteBuffer:

acdk::lang::Object acdk::lang::ReadByteBuffer acdk::lang::SimplePtrItBuffer< byte > acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

This class holds a String, whereas the String::characterClass() must already have the correct encoding.


Public Member Functions

 StringReadByteBuffer (IN(RString) str, int start=0, int end=-1)
RObject clone ()
int length ()
byte get (int idx)
 returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException

virtual RReadByteBuffer createReadSlice (int start=0, int end=-1, SliceType sliceType=ShadowSlice)
 creates a slice of this ByteBuffer

int startOffset ()
int endOffset ()
virtual bytebegin ()
 for performance reasons the ByteBuffer implementation should support this method

virtual byteend ()
 for performance reasons the ByteBuffer implementation should support this method

virtual bool supportNativeIterator ()
 begin() and end() are supported


Protected Types

typedef SimplePtrItBuffer<
byte
PtrBufferType

Protected Attributes

RString _str

Member Typedef Documentation

typedef SimplePtrItBuffer<byte> acdk::lang::StringReadByteBuffer::PtrBufferType [protected]
 


Constructor & Destructor Documentation

acdk::lang::StringReadByteBuffer::StringReadByteBuffer IN(RString str,
int  start = 0,
int  end = -1
[inline]
 


Member Function Documentation

virtual byte* acdk::lang::StringReadByteBuffer::begin  )  [inline, virtual]
 

for performance reasons the ByteBuffer implementation should support this method

Reimplemented from acdk::lang::ByteBuffer.

RObject acdk::lang::StringReadByteBuffer::clone  )  [inline, virtual]
 

See also:
serialized_clone

Reimplemented from acdk::lang::Object.

virtual RReadByteBuffer acdk::lang::StringReadByteBuffer::createReadSlice int  start = 0,
int  end = -1,
SliceType  sliceType = ShadowSlice
[virtual]
 

creates a slice of this ByteBuffer

Implements acdk::lang::ReadByteBuffer.

virtual byte* acdk::lang::StringReadByteBuffer::end  )  [inline, virtual]
 

for performance reasons the ByteBuffer implementation should support this method

Reimplemented from acdk::lang::ByteBuffer.

int acdk::lang::StringReadByteBuffer::endOffset  )  [inline]
 

byte acdk::lang::StringReadByteBuffer::get int  idx  )  [inline, virtual]
 

returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException

Implements acdk::lang::ReadByteBuffer.

int acdk::lang::StringReadByteBuffer::length  )  [inline]
 

Reimplemented from acdk::lang::SimplePtrItBuffer< byte >.

int acdk::lang::StringReadByteBuffer::startOffset  )  [inline]
 

virtual bool acdk::lang::StringReadByteBuffer::supportNativeIterator  )  [inline, virtual]
 

begin() and end() are supported

Reimplemented from acdk::lang::ByteBuffer.


Member Data Documentation

RString acdk::lang::StringReadByteBuffer::_str [protected]
 

 
Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer