Mercurial > projects > dwt-win
view dwt/dwthelper/OutputStream.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 5406a8f6526d |
children | 32a6819fef61 |
line wrap: on
line source
/** * Authors: Frank Benoit <keinfarbton@googlemail.com> */ module dwt.dwthelper.OutputStream; import dwt.dwthelper.utils; static import tango.io.model.IConduit; public abstract class OutputStream { private tango.io.model.IConduit.OutputStream ostr; public this(){ } protected this( tango.io.model.IConduit.OutputStream aOutStream) { this.ostr = aOutStream; } protected this(OutputStream rhs) { ostr = rhs.ostr; } public abstract void write( int b ); public void write( byte[] b ){ ostr.write(b); } public void write(String c) { ostr.write(c); } public void write( byte[] b, int off, int len ){ implMissing( __FILE__, __LINE__ ); } public void flush(){ ostr.flush(); } public void close(){ ostr.flush(); implMissing( __FILE__, __LINE__ ); } }