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

IWriter Struct Reference

Inheritance diagram for IWriter:

Writer DisplayWriter EndianWriter ColumnWriter FlushWriter HttpWriter ConsoleWriter TextWriter 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 Writer.

Definition at line 109 of file IWriter.d.

typedef put opCall
 

Reimplemented in Writer.

Definition at line 110 of file IWriter.d.


Member Function Documentation

IWriter put bool  x  ) 
 

These are the basic writer methods

Reimplemented in Writer.

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

IWriter put ubyte  x  ) 
 

Reimplemented in Writer.

IWriter put byte  x  ) 
 

Reimplemented in Writer.

IWriter put ushort  x  ) 
 

Reimplemented in Writer.

IWriter put short  x  ) 
 

Reimplemented in Writer.

IWriter put uint  x  ) 
 

Reimplemented in Writer.

IWriter put int  x  ) 
 

Reimplemented in Writer.

IWriter put ulong  x  ) 
 

Reimplemented in Writer.

IWriter put long  x  ) 
 

Reimplemented in Writer.

IWriter put float  x  ) 
 

Reimplemented in Writer.

IWriter put double  x  ) 
 

Reimplemented in Writer.

IWriter put real  x  ) 
 

Reimplemented in Writer.

IWriter put char  x  ) 
 

Reimplemented in Writer.

IWriter put wchar  x  ) 
 

Reimplemented in Writer.

IWriter put dchar  x  ) 
 

Reimplemented in Writer.

IWriter put byte[]  x  ) 
 

Reimplemented in Writer.

IWriter put short[]  x  ) 
 

Reimplemented in Writer.

IWriter put int[]  x  ) 
 

Reimplemented in Writer.

IWriter put long[]  x  ) 
 

Reimplemented in Writer.

IWriter put ubyte[]  x  ) 
 

Reimplemented in Writer.

IWriter put ushort[]  x  ) 
 

Reimplemented in Writer.

IWriter put uint[]  x  ) 
 

Reimplemented in Writer.

IWriter put ulong[]  x  ) 
 

Reimplemented in Writer.

IWriter put float[]  x  ) 
 

Reimplemented in Writer.

IWriter put double[]  x  ) 
 

Reimplemented in Writer.

IWriter put real[]  x  ) 
 

Reimplemented in Writer.

IWriter put char[]  x  ) 
 

Reimplemented in ColumnWriter, FlushWriter, TextWriter, and Writer.

IWriter putw wchar[]  x  ) 
 

Reimplemented in TextWriter, and Writer.

Referenced by TextWriter::putw().

IWriter putd dchar[]  x  ) 
 

Reimplemented in TextWriter, and Writer.

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 ColumnWriter, FlushWriter, TextWriter, and Writer.

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). Each type may be configured with a distinct encoder.

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 Writer.

IWriter cr  ) 
 

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

Reimplemented in Writer.

Referenced by HttpResponse::commit(), AdminServlet::service(), testHttpClient(), testHttpClient2(), 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. These are aliases for each other.

Reimplemented in Writer.

IWriter flush  ) 
 

Reimplemented in Writer.

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

IBuffer getBuffer  ) 
 

Return the associated buffer

Reimplemented in Writer.

Referenced by Uri::write().


The documentation for this struct was generated from the following file:
Generated on Fri Nov 11 18:44:39 2005 for Mango by  doxygen 1.4.0