2005/5/9

     
 

class TeeWriter

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

acdk::io::TeeWriter Class Reference

#include <TeeWriter.h>

Inheritance diagram for acdk::io::TeeWriter:

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

Detailed Description

Tee writer spawn a writer stream to 2 writer streams API: ACDK
The default operatations of FilterWriter acts on the first output Writer.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.13
Date:
Date
2005/02/05 10:44:54


Public Member Functions

 TeeWriter (IN(RWriter) out1, IN(RWriter) out2, IN(acdk::lang::Object) lock=Nil)
virtual void setOut (IN(RWriter) writer)
virtual RWriter getOut ()
virtual RStorage getStorage ()
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 (const byte *cstr, int offset, int len)
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 flush ()
virtual void close ()
virtual RWriter getStorageWriter ()
 returns the unfiltered Writer


Protected Attributes

RWriter _out1
RWriter _out2


Constructor & Destructor Documentation

acdk::io::TeeWriter::TeeWriter IN(RWriter out1,
IN(RWriter out2,
IN(acdk::lang::Object lock = Nil
[inline]
 


Member Function Documentation

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

Implements acdk::io::AbstractWriter.

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

Implements acdk::io::AbstractWriter.

virtual RWriter acdk::io::TeeWriter::getOut  )  [inline, virtual]
 

virtual RStorage acdk::io::TeeWriter::getStorage  )  [virtual]
 

Implements acdk::io::FilterWriter.

virtual RWriter acdk::io::TeeWriter::getStorageWriter  )  [inline, virtual]
 

returns the unfiltered Writer

Implements acdk::io::FilterWriter.

virtual void acdk::io::TeeWriter::setOut IN(RWriter writer  )  [inline, virtual]
 

Implements acdk::io::FilterWriter.

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

Reimplemented from acdk::io::AbstractWriter.

virtual void acdk::io::TeeWriter::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

RWriter acdk::io::TeeWriter::_out1 [protected]
 

RWriter acdk::io::TeeWriter::_out2 [protected]