2005/5/9

     
 

class AbstractFilterWriter

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

acdk::io::AbstractFilterWriter Class Reference

#include <AbstractFilterWriter.h>

Inheritance diagram for acdk::io::AbstractFilterWriter:

acdk::io::AbstractWriter acdk::io::FilterWriter acdk::lang::Object acdk::io::Writer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::io::AbstractObjectWriter acdk::io::ASCIIDataWriter acdk::io::BinaryDataWriter acdk::io::BufferedWriter acdk::net::TransRateWriter acdk::vfile::DeflateWriter acdkx::orb::CDRObjectWriter acdk::io::BinaryObjectWriter acdk::xml::XMLObjectWriter acdkx::orb::OrbOutputStream acdk::java::serialization::JavaObjectWriter acdkx::orb::ReplyOutputStream acdkx::orb::RequestOutputStream List of all members.

Detailed Description

Implements a filter for a given Writer.

API: ACDK

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.14
Date:
Date
2005/04/09 19:26:44


Public Member Functions

 AbstractFilterWriter (IN(RWriter) out, IN(acdk::lang::Object) lock=Nil)
virtual void setOut (IN(RWriter) writer)
virtual RWriter getOut ()
virtual RStorage getStorage ()
 Gets the storage reader.

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 _out


Constructor & Destructor Documentation

acdk::io::AbstractFilterWriter::AbstractFilterWriter IN(RWriter out,
IN(acdk::lang::Object lock = Nil
[inline]
 


Member Function Documentation

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

Implements acdk::io::AbstractWriter.

Reimplemented in acdk::io::BufferedWriter, and acdk::vfile::DeflateWriter.

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

Implements acdk::io::AbstractWriter.

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BufferedWriter, acdk::vfile::DeflateWriter, and acdkx::orb::CDRObjectWriter.

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

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

Gets the storage reader.

If this contains an FilterReader instead of a Storage, the storage reader of this filter reader will be returned (recursive).

Implements acdk::io::FilterWriter.

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, and acdkx::orb::CDRObjectWriter.

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

returns the unfiltered Writer

Implements acdk::io::FilterWriter.

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, and acdkx::orb::CDRObjectWriter.

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

Implements acdk::io::FilterWriter.

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, and acdkx::orb::CDRObjectWriter.

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

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::BufferedWriter, acdk::net::TransRateWriter, acdk::vfile::DeflateWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::AbstractFilterWriter::write const byte cstr,
int  offset,
int  len
[inline, virtual]
 

Reimplemented from acdk::io::AbstractWriter.

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::BufferedWriter, acdk::net::TransRateWriter, acdk::vfile::DeflateWriter, and acdkx::orb::CDRObjectWriter.

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

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::BufferedWriter, acdk::net::TransRateWriter, acdk::vfile::DeflateWriter, and acdkx::orb::CDRObjectWriter.


Member Data Documentation

RWriter acdk::io::AbstractFilterWriter::_out [protected]