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 List of all members.

Public Types

typedef opShl put

Public Member Functions

IWriter opShl (bool x)
IWriter opShl (ubyte x)
IWriter opShl (byte x)
IWriter opShl (ushort x)
IWriter opShl (short x)
IWriter opShl (uint x)
IWriter opShl (int x)
IWriter opShl (ulong x)
IWriter opShl (long x)
IWriter opShl (float x)
IWriter opShl (double x)
IWriter opShl (real x)
IWriter opShl (char x)
IWriter opShl (wchar x)
IWriter opShl (dchar x)
IWriter opShl (byte[] x)
IWriter opShl (short[] x)
IWriter opShl (int[] x)
IWriter opShl (long[] x)
IWriter opShl (ubyte[] x)
IWriter opShl (ushort[] x)
IWriter opShl (uint[] x)
IWriter opShl (ulong[] x)
IWriter opShl (float[] x)
IWriter opShl (double[] x)
IWriter opShl (real[] x)
IWriter opShl (char[] x)
IWriter opShlw (wchar[] x)
IWriter opShld (dchar[] x)
IWriter opShl (IWritable x)
void setEncoder (IEncoder e)
IWriter cr ()
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 105 of file IWriter.d.


Member Typedef Documentation

typedef opShl put
 

Reimplemented in AbstractWriter, ColumnWriter, FlushWriter, and TextWriter.

Definition at line 107 of file IWriter.d.

Referenced by HttpResponse::commit(), HttpClient::open(), AdminServlet::service(), testClassSerialization(), testCompositeIO(), VersionMango::testDecoder(), VersionMango::testDisplay(), testHttpClient(), testHttpClient2(), testProtocol(), testServletEngine(), testSocket(), testSocketRegex(), testTextWriter(), testToken1(), Token::write(), RollCall::write(), Payload::write(), Message::write(), HttpTokens::write(), StartLine::VersionUseTokenizer::write(), HttpCookies::write(), Cookie::write(), ResponseLine::write(), FilePath::write(), and NewlineWriter::write().


Member Function Documentation

IWriter opShl bool  x  ) 
 

These are the basic writer methods

Reimplemented in AbstractWriter.

IWriter opShl ubyte  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl byte  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl ushort  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl short  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl uint  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl int  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl ulong  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl long  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl float  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl double  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl real  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl char  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl wchar  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl dchar  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl byte[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl short[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl int[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl long[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl ubyte[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl ushort[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl uint[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl ulong[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl float[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl double[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl real[]  x  ) 
 

Reimplemented in AbstractWriter.

IWriter opShl char[]  x  ) 
 

Reimplemented in AbstractWriter, ColumnWriter, and TextWriter.

IWriter opShlw wchar[]  x  ) 
 

Reimplemented in AbstractWriter, and TextWriter.

Referenced by TextWriter::opShlw(), and UText::VersionMango::write().

IWriter opShld dchar[]  x  ) 
 

Reimplemented in AbstractWriter, and TextWriter.

Referenced by TextWriter::opShld().

IWriter opShl IWritable  x  ) 
 

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.

Referenced by VersionMango::testDecoder(), and VersionMango::testDisplay().

IWriter cr  ) 
 

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

Reimplemented in AbstractWriter.

Referenced by HttpResponse::commit().

IWriter flush  ) 
 

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

Reimplemented in AbstractWriter.

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

IBuffer getBuffer  ) 
 

Return the associated buffer

Reimplemented in AbstractWriter.

Referenced by VersionMango::StringEncoder::bind(), and VersionMango::testDecoder().


The documentation for this struct was generated from the following file:
Generated on Tue Jan 25 21:18:37 2005 for Mango by doxygen 1.3.6