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

IWriter Class Reference

Inheritance diagram for IWriter:

Writer DisplayWriter EndianWriter ColumnWriter FlushWriter HttpWriter 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 put (wchar[] x)
IWriter put (dchar[] x)
IWriter put (IWritable x)
void setEncoder (AbstractEncoder)
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 88 of file IWriter.d.


Member Typedef Documentation

typedef put opShl
 

Definition at line 91 of file IWriter.d.

typedef put opCall
 

Definition at line 92 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(), TokenTemplate(), 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 Writer.

IWriter put wchar[]  x  ) 
 

Reimplemented in Writer.

IWriter put dchar[]  x  ) 
 

Reimplemented in Writer.

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 AbstractEncoder   ) 
 

Bind an IEncoder to the writer. Encoders are intended to be used as a conversion mechanism between various character representations (encodings). Each writer may be configured with a distinct encoder.

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(), 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(), HttpResponse::flush(), and HttpClient::open().

IBuffer getBuffer  ) 
 

Return the associated buffer

Reimplemented in Writer.

Referenced by Uri::write().


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:40 2005 for Mango by  doxygen 1.4.0