2005/5/9

     
 

class Buffers

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

acdk::lang::Buffers Class Reference

#include <ByteBuffer.h>

Inheritance diagram for acdk::lang::Buffers:

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

Detailed Description

helper methods in connection with ByteBuffers


Public Member Functions

RString toString ()
 internal only


Static Public Member Functions

RString toString (IN(RByteBuffer) buf)
 return a array of hex values

RReadByteBuffer getReadByteBuffer (IN(RbyteArray) ba)
 creates a ReadByteBuffer from given byteArray

RReadWriteByteBuffer getReadWriteByteBuffer (IN(RbyteArray) ba, int startIdx=0, int endIdx=-1)
 creates a ReadWriteByteBuffer from given byteArray

RReadByteBuffer getNativeReadByteBuffer (IN(RReadByteBuffer) buffer)
 Converts given ReadByteBuffer to a ReadByteBuffer which supports the native begin() and end() methods.

RWriteByteBuffer getNativeWriteByteBuffer (IN(RWriteByteBuffer) buffer)
 Converts given WriteByteBuffer to a WriteByteBuffer which supports the native begin() and end() methods.

RReadByteBuffer getReadByteBuffer (IN(RString) str, IN(acdk::locale::REncoding) enc)
 converts the given String to a ReadByteBuffer using the given encoding

acdk::io::RReader getReader (IN(RReadByteBuffer) buffer)
 creates a Reader wrapper from the given ReadByteBuffer

acdk::io::RWriter getWriter (IN(RWriteByteBuffer) buffer)
 creates a Writer wrapper from the given WriteByteBuffer

acdk::io::RWriter getAppendWriter (IN(RFlexByteBuffer) buffer)
 creates a Writer wrapper from the given FlexByteBuffer

int copyBuffer (IN(RReadByteBuffer) source, IN(RWriteByteBuffer) target)
 copy source buffer into target stops if source is copied or target is full

void appendBuffer (IN(RReadByteBuffer) source, IN(RFlexByteBuffer) buffer)
 append all bytes from source to buffer


Member Function Documentation

void acdk::lang::Buffers::appendBuffer IN(RReadByteBuffer source,
IN(RFlexByteBuffer buffer
[static]
 

append all bytes from source to buffer

int acdk::lang::Buffers::copyBuffer IN(RReadByteBuffer source,
IN(RWriteByteBuffer target
[static]
 

copy source buffer into target stops if source is copied or target is full

Returns:
count of copied bytes

acdk::io::RWriter acdk::lang::Buffers::getAppendWriter IN(RFlexByteBuffer buffer  )  [static]
 

creates a Writer wrapper from the given FlexByteBuffer

RReadByteBuffer acdk::lang::Buffers::getNativeReadByteBuffer IN(RReadByteBuffer buffer  )  [static]
 

Converts given ReadByteBuffer to a ReadByteBuffer which supports the native begin() and end() methods.

If the given buffer already supports these methods return the given buffer

RWriteByteBuffer acdk::lang::Buffers::getNativeWriteByteBuffer IN(RWriteByteBuffer buffer  )  [static]
 

Converts given WriteByteBuffer to a WriteByteBuffer which supports the native begin() and end() methods.

If the given buffer already supports these methods return the given buffer

RReadByteBuffer acdk::lang::Buffers::getReadByteBuffer IN(RString str,
IN(acdk::locale::REncoding enc
[static]
 

converts the given String to a ReadByteBuffer using the given encoding

RReadByteBuffer acdk::lang::Buffers::getReadByteBuffer IN(RbyteArray ba  )  [static]
 

creates a ReadByteBuffer from given byteArray

acdk::io::RReader acdk::lang::Buffers::getReader IN(RReadByteBuffer buffer  )  [static]
 

creates a Reader wrapper from the given ReadByteBuffer

RReadWriteByteBuffer acdk::lang::Buffers::getReadWriteByteBuffer IN(RbyteArray ba,
int  startIdx = 0,
int  endIdx = -1
[static]
 

creates a ReadWriteByteBuffer from given byteArray

acdk::io::RWriter acdk::lang::Buffers::getWriter IN(RWriteByteBuffer buffer  )  [static]
 

creates a Writer wrapper from the given WriteByteBuffer

RString acdk::lang::Buffers::toString IN(RByteBuffer buf  )  [static]
 

return a array of hex values

RString acdk::lang::Buffers::toString  )  [inline, virtual]
 

internal only

Reimplemented from acdk::lang::Object.