comparison dwt/dwthelper/OutputStream.d @ 36:db5a898b2119

Fixed a lot of compile errors
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 07 Oct 2008 12:56:18 +0200
parents 380af2bdd8e5
children
comparison
equal deleted inserted replaced
35:7d135fe0caf2 36:db5a898b2119
1 /** 1 /**
2 * Authors: Frank Benoit <keinfarbton@googlemail.com> 2 * Authors: Frank Benoit <keinfarbton@googlemail.com>
3 * Jacob Carlborg <jacob.carlborg@gmail.com>
3 */ 4 */
4 module dwt.dwthelper.OutputStream; 5 module dwt.dwthelper.OutputStream;
5 6
6 import dwt.dwthelper.utils; 7 import dwt.dwthelper.utils;
7 static import tango.io.model.IConduit; 8 static import tango.io.model.IConduit;
8 9
9 public abstract class OutputStream { 10 public abstract class OutputStream {
10 11
11 private tango.io.model.IConduit.OutputStream ostr; 12 protected tango.io.model.IConduit.OutputStream ostr;
12 13
13 public this(){ 14 public this(){
14 } 15 }
15 16
16 protected this( tango.io.model.IConduit.OutputStream aOutStream) { 17 protected this( tango.io.model.IConduit.OutputStream aOutStream) {
30 public void write(char[] c) { 31 public void write(char[] c) {
31 ostr.write(c); 32 ostr.write(c);
32 } 33 }
33 34
34 public void write( byte[] b, int off, int len ){ 35 public void write( byte[] b, int off, int len ){
35 implMissing( __FILE__, __LINE__ ); 36 ostr.write(b[off .. off + len]);
36 } 37 }
37 38
38 public void flush(){ 39 public void flush(){
39 ostr.flush(); 40 ostr.flush();
40 } 41 }