2005/5/9

     
 

class DeflateWriter

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

acdk::vfile::DeflateWriter Class Reference

#include <DeflateWriter.h>

Inheritance diagram for acdk::vfile::DeflateWriter:

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

Public Member Functions

 DeflateWriter (IN(::acdk::io::RWriter) in)
 ~DeflateWriter ()
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 ()

Protected Member Functions

void init ()
void flushBuffer (int flushflag)

Private Attributes

z_stream _zstream
bool _initialized
::acdk::lang::sys::core_vector<
byte
_inbuf
::acdk::lang::sys::core_vector<
byte
_outbuf
int _inpos
 position of inbuf


Constructor & Destructor Documentation

acdk::vfile::DeflateWriter::DeflateWriter IN(::acdk::io::RWriter in  ) 
 

acdk::vfile::DeflateWriter::~DeflateWriter  ) 
 


Member Function Documentation

virtual void acdk::vfile::DeflateWriter::close  )  [virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdk::vfile::DeflateWriter::flush  )  [virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

void acdk::vfile::DeflateWriter::flushBuffer int  flushflag  )  [protected]
 

void acdk::vfile::DeflateWriter::init  )  [protected]
 

virtual void acdk::vfile::DeflateWriter::write IN(RbyteArray ch,
int  offset = 0,
int  len = -1
[virtual]
 

default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdk::vfile::DeflateWriter::write const byte cstr,
int  offset,
int  len
[virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdk::vfile::DeflateWriter::write byte  c  )  [virtual]
 

default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

Reimplemented from acdk::io::AbstractFilterWriter.


Member Data Documentation

::acdk::lang::sys::core_vector<byte> acdk::vfile::DeflateWriter::_inbuf [private]
 

bool acdk::vfile::DeflateWriter::_initialized [private]
 

int acdk::vfile::DeflateWriter::_inpos [private]
 

position of inbuf

::acdk::lang::sys::core_vector<byte> acdk::vfile::DeflateWriter::_outbuf [private]
 

z_stream acdk::vfile::DeflateWriter::_zstream [private]