2005/5/9

     
 

class Writer

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

acdk::io::Writer Class Reference

#include <Writer.h>

Inheritance diagram for acdk::io::Writer:

acdk::io::AbstractWriter acdk::io::FilterWriter acdk::io::LittleBytesWriter acdk::net::TCPSocket acdk::io::AbstractFilterWriter acdk::io::AbstractStorageWriter acdk::io::ByteBufferAppendWriter acdk::io::ByteBufferWriter acdk::io::BytePtrWriter acdk::io::ByteToCharWriter acdk::io::TeeWriter acdk::io::AbstractFilterWriter acdk::io::DataWriter acdk::io::TeeWriter List of all members.

Detailed Description

Different to JDK a Writer (an Reader too) are not classes, but only Interfaces.

The role of java.io.Writer takes AbstractWriter It differs to the java IO-Modell, which is IMHO too confusing.
API: ACDK<br/>

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.24
Date:
Date
2005/04/09 19:26:45
See also:
Reader


Public Member Functions

virtual void flush ()=0
virtual void close ()=0
virtual void write (const byte *cstr, int offset, int len)
virtual void write (byte c)=0
 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)
 Uses write(byte c) to write bytes.

virtual RStorage getWriterStorage ()
virtual RCharWriter getCharWriter (IN(acdk::locale::REncoder) encoder=Nil)
 Get writer from this CharWriter.


Member Function Documentation

virtual void acdk::io::Writer::close  )  [pure virtual]
 

Implemented in acdk::io::AbstractFilterWriter, acdk::io::AbstractWriter, acdk::io::BufferedWriter, acdk::io::BytePtrWriter, acdk::io::ByteBufferWriter, acdk::io::ByteBufferAppendWriter, acdk::io::ByteToCharWriter, acdk::io::LittleBytesWriter, acdk::io::ConsoleWriter, acdk::io::FileWriter, acdk::io::MemWriter, acdk::io::NullWriter, acdk::io::OutputDebugStringWriter, acdk::io::PipedWriter, acdk::io::RandomAccessFile, acdk::io::TeeWriter, acdk::net::srfsys::FilterObjectWriter, acdk::net::srfsys::SRSFileWriter, acdk::net::TCPSocket, and acdk::vfile::DeflateWriter.

virtual void acdk::io::Writer::flush  )  [pure virtual]
 

Implemented in acdk::io::AbstractFilterWriter, acdk::io::AbstractObjectWriter, acdk::io::AbstractWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BufferedWriter, acdk::io::BytePtrWriter, acdk::io::ByteBufferWriter, acdk::io::ByteBufferAppendWriter, acdk::io::ByteToCharWriter, acdk::io::LittleBytesWriter, acdk::io::ConsoleWriter, acdk::io::DataWriter, acdk::io::FileWriter, acdk::io::FilterWriter, acdk::io::MemWriter, acdk::io::NullWriter, acdk::io::ObjectWriter, acdk::io::OutputDebugStringWriter, acdk::io::PipedWriter, acdk::io::RandomAccessFile, acdk::io::TeeWriter, acdk::net::srfsys::FilterObjectWriter, acdk::net::TCPSocket, acdk::vfile::DeflateWriter, and acdkx::orb::CDRObjectWriter.

virtual RCharWriter acdk::io::Writer::getCharWriter IN(acdk::locale::REncoder encoder = Nil  )  [virtual]
 

Get writer from this CharWriter.

Parameters:
encoder uses the encoding. If Nil uses the System encoder

virtual RStorage acdk::io::Writer::getWriterStorage  )  [virtual]
 

Reimplemented in acdk::io::ByteBufferWriter, and acdk::io::ByteBufferAppendWriter.

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

Uses write(byte c) to write bytes.

For performance reason this method should be implemented

Reimplemented in acdk::io::AbstractFilterWriter, acdk::io::AbstractObjectWriter, acdk::io::AbstractWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::BufferedWriter, acdk::io::BytePtrWriter, acdk::io::ByteBufferWriter, acdk::io::ByteBufferAppendWriter, acdk::io::ByteToCharWriter, acdk::io::LittleBytesWriter, acdk::io::ConsoleWriter, acdk::io::DataWriter, acdk::io::FileWriter, acdk::io::FilterWriter, acdk::io::MemWriter, acdk::io::NullWriter, acdk::io::ObjectWriter, acdk::io::PipedWriter, acdk::io::RandomAccessFile, acdk::io::TeeWriter, acdk::net::srfsys::FilterObjectWriter, acdk::net::TCPSocket, acdk::net::TransRateWriter, acdk::vfile::DeflateWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::Writer::write byte  c  )  [pure virtual]
 

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

Implemented in acdk::io::AbstractFilterWriter, acdk::io::AbstractObjectWriter, acdk::io::AbstractWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::BufferedWriter, acdk::io::BytePtrWriter, acdk::io::ByteBufferWriter, acdk::io::ByteBufferAppendWriter, acdk::io::ByteToCharWriter, acdk::io::LittleBytesWriter, acdk::io::ConsoleWriter, acdk::io::DataWriter, acdk::io::FileWriter, acdk::io::FilterWriter, acdk::io::MemWriter, acdk::io::NullWriter, acdk::io::ObjectWriter, acdk::io::OutputDebugStringWriter, acdk::io::PipedWriter, acdk::io::RandomAccessFile, acdk::io::TeeWriter, acdk::net::srfsys::FilterObjectWriter, acdk::net::TCPSocket, acdk::net::TransRateWriter, acdk::vfile::DeflateWriter, and acdkx::orb::CDRObjectWriter.

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

Reimplemented in acdk::io::AbstractFilterWriter, acdk::io::AbstractObjectWriter, acdk::io::AbstractWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::BufferedWriter, acdk::io::BytePtrWriter, acdk::io::ByteBufferWriter, acdk::io::ByteBufferAppendWriter, acdk::io::ByteToCharWriter, acdk::io::LittleBytesWriter, acdk::io::ConsoleWriter, acdk::io::DataWriter, acdk::io::FileWriter, acdk::io::FilterWriter, acdk::io::MemWriter, acdk::io::NullWriter, acdk::io::ObjectWriter, acdk::io::OutputDebugStringWriter, acdk::io::PipedWriter, acdk::io::RandomAccessFile, acdk::io::TeeWriter, acdk::net::srfsys::FilterObjectWriter, acdk::net::TCPSocket, acdk::net::TransRateWriter, acdk::vfile::DeflateWriter, and acdkx::orb::CDRObjectWriter.