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

Writer.d File Reference

Go to the source code of this file.

Functions

static this ()

Variables

module mango io Writer
import mango sys Type
import mango io Exception
import mango io model IWriter
import mango io model mango
io model 
IBuffer
import mango io model mango
io model mango io model 
IConduit
import mango io FileConst
static NewlineWriter CR


Function Documentation

static this  )  [static]
 

Definition at line 712 of file Writer.d.

References CR.


Variable Documentation

module mango io Writer
 

Definition at line 40 of file Writer.d.

import mango sys Type
 

Definition at line 42 of file Writer.d.

import mango io Exception
 

Definition at line 44 of file Writer.d.

import mango io model IWriter
 

Definition at line 46 of file Writer.d.

import mango io model mango io model IBuffer
 

Definition at line 46 of file Writer.d.

import mango io model mango io model mango io model IConduit
 

Definition at line 46 of file Writer.d.

import mango io FileConst
 

A class to handle newline output. One might reasonable expect to emit a char[] for newlines; FileConst.NewlineString for example. Turns out that it's much more efficient to intercept line-breaks when they're implemented in a more formal manner (such as this).

For example, ColumnWriter() and TextWriter() both must intercept newline output so they can adjust formatting appropriately. It is much more efficient for such writers to intercept the IWritable put() method instead of scanning each char[] for the various \n combinations.

Please use the INewlineWriter interface for emitting newlines.

Definition at line 661 of file Writer.d.

NewlineWriter CR [static]
 

public newline adaptor

Definition at line 710 of file Writer.d.

Referenced by Writer::cr(), and this().


Generated on Mon Nov 14 10:59:47 2005 for Mango by  doxygen 1.4.0