Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IWriter Struct Reference

Inheritance diagram for IWriter:

AbstractWriter Writer DisplayWriter EndianWriter ColumnWriter FlushWriter HttpWriter TextWriter ConsoleWriter List of all members.

Public Types

typedef put opShl
typedef put opCall

Public Member Functions

IWriter put (bool x)
IWriter put (ubyte x)
IWriter put (byte x)
IWriter put (ushort x)
IWriter put (short x)
IWriter put (uint x)
IWriter put (int x)
IWriter put (ulong x)
IWriter put (long x)
IWriter put (float x)
IWriter put (double x)
IWriter put (real x)
IWriter put (char x)
IWriter put (wchar x)
IWriter put (dchar x)
IWriter put (byte[] x)
IWriter put (short[] x)
IWriter put (int[] x)
IWriter put (long[] x)
IWriter put (ubyte[] x)
IWriter put (ushort[] x)
IWriter put (uint[] x)
IWriter put (ulong[] x)
IWriter put (float[] x)
IWriter put (double[] x)
IWriter put (real[] x)
IWriter put (char[] x)
IWriter putw (wchar[] x)
IWriter putd (dchar[] x)
IWriter put (IWritable x)
void setEncoder (IEncoder e)
IWriter cr ()
IWriter put ()
IWriter flush ()
IBuffer getBuffer ()

Detailed Description

IWriter interface. IWriter provides the means to append formatted data to an IBuffer, and exposes a convenient method of handling a variety of data types. In addition to writing native types such as integer and char[], writers also process any class which has implemented the IWritable interface (one method).

Definition at line 106 of file IWriter.d.


Member Typedef Documentation

typedef put opShl
 

Reimplemented in AbstractWriter.

Definition at line 108 of file IWriter.d.

typedef put opCall
 

Reimplemented in AbstractWriter.

Definition at line 109 of file IWriter.d.


Member Function Documentation

IWriter put bool  x  ) 
 

These are the basic writer methods

Reimplemented in AbstractWriter.

Referenced by HttpResponse::commit(), HttpClient::open(), TextWriter::put(), FlushWriter::put(), ColumnWriter::put(), AdminServlet::service(), Token::write(), RollCall::write(), Payload::write(), Message::write(), HttpTokens::write(), StartLine::VersionUseTokenizer::write(), HttpCookies::write(), Cookie::write(), ResponseLine::write(), and NewlineWriter::write().

IWriter put ubyte  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put byte  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put ushort  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put short  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put uint  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put int  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put ulong  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put long  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put float  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put double  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put real  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put char  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put wchar  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put dchar  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put byte[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put short[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put int[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put long[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put ubyte[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put ushort[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put uint[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put ulong[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put float[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put double[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put real[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter put char[]  x  ) 
 

Reimplemented in AbstractWriter, ColumnWriter, and TextWriter.

IWriter putw wchar[]  x  ) 
 

Reimplemented in AbstractWriter, and TextWriter.

Referenced by TextWriter::putw().

IWriter putd dchar[]  x  ) 
 

Reimplemented in AbstractWriter, and TextWriter.

Referenced by TextWriter::putd().

IWriter put IWritable  x  ) 
 

This is the mechanism used for binding arbitrary classes to the IO system. If a class implements IWritable, it can be used as a target for IWriter put() operations. That is, implementing IWritable is intended to transform any class into an IWriter adaptor for the content held therein.

Reimplemented in AbstractWriter, ColumnWriter, FlushWriter, and TextWriter.

void setEncoder IEncoder  e  ) 
 

Bind an IEncoder to the writer. Encoders are intended to be used as a conversion mechanism between various character representations (encodings), or the translation of any data type from one representation to another. Each data type may be configured with a distinct encoder, covering all native types (15 in total).

An appropriate encoder set should be attached to each IWriter, and thus be available for subsequent use. A raw binary implementation is attached by default (no encoding).

See module mango.icu.UMango for an example of encoder implementation -- those classes bind the ICU converters to this IO package.

Reimplemented in AbstractWriter.

IWriter cr  ) 
 

Output a newline. Do this indirectly so that it can be intercepted by subclasses.

Reimplemented in AbstractWriter.

Referenced by HttpResponse::commit(), HttpClient::open(), AdminServlet::service(), HttpTokens::write(), StartLine::VersionUseTokenizer::write(), HttpCookies::write(), and ResponseLine::write().

IWriter put  ) 
 

Flush the output of this writer. Throws an IOException if the operation fails.

Reimplemented in AbstractWriter.

IWriter flush  ) 
 

Reimplemented in AbstractWriter.

Referenced by HttpResponse::commit(), HttpResponse::flush(), and HttpClient::open().

IBuffer getBuffer  ) 
 

Return the associated buffer

Reimplemented in AbstractWriter.


The documentation for this struct was generated from the following file:
Generated on Sat Apr 9 20:11:41 2005 for Mango by doxygen 1.3.6