|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::io::ByteToCharWriter Class Reference#include <ByteToCharWriter.h>
Inheritance diagram for acdk::io::ByteToCharWriter:
List of all members.
Detailed Description
Reads from a CharReader and encodes it to a Reader.
- Author:
- Roger Rene Kommer (mailto:kommer@artefaktur.com)
- Version:
- Revision
- 1.6
- Date:
- Date
- 2005/02/05 10:44:53
|
Public Member Functions |
| ByteToCharWriter (IN(RCharWriter) charWriter, IN(acdk::locale::RDecoder) dec=Nil, IN(acdk::lang::Object) iolock=Nil) |
virtual void | flush () |
virtual void | close () |
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 void | write (const byte *cstr, int offset, int len) |
void | _overFlow () |
Private Attributes |
RCharWriter | _cout |
acdk::locale::RDecoder | _decoder |
LittleBytesReader | _buf |
int | _maxBytesPerChar |
Constructor & Destructor Documentation
Member Function Documentation
void acdk::io::ByteToCharWriter::_overFlow |
( |
|
) |
[inline] |
|
virtual void acdk::io::ByteToCharWriter::close |
( |
|
) |
[inline, virtual] |
|
virtual void acdk::io::ByteToCharWriter::flush |
( |
|
) |
[inline, virtual] |
|
virtual void acdk::io::ByteToCharWriter::write |
( |
const byte * |
cstr, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
[inline, virtual] |
|
virtual void acdk::io::ByteToCharWriter::write |
( |
IN(RbyteArray) |
ch, |
|
|
int |
offset = 0, |
|
|
int |
len = -1 |
|
) |
[inline, virtual] |
|
|
default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);
Reimplemented from acdk::io::AbstractWriter. |
virtual void acdk::io::ByteToCharWriter::write |
( |
byte |
c |
) |
[inline, virtual] |
|
|
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);
Implements acdk::io::AbstractWriter. |
Member Data Documentation
|
|