Show
Ignore:
Timestamp:
06/24/08 16:05:28 (7 months ago)
Author:
Frank Benoit <benoit@tionex.de>
Children:

243:ecb80b2a89e1 248:d10ff1f47f84

branch:
default
Message:

Fix implMissing for ImageLoader?.save, thx yidabu for reporting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/OutputStream.d

    r212 r242  
    55 
    66import dwt.dwthelper.utils; 
    7 static import tango.io.model.IConduit; 
    87 
    98public abstract class OutputStream { 
    109 
    11     private tango.io.model.IConduit.OutputStream ostr; 
    12  
    1310    public this(){ 
    14     } 
    15  
    16     protected this( tango.io.model.IConduit.OutputStream aOutStream) { 
    17         this.ostr = aOutStream; 
    18     } 
    19  
    20     protected this(OutputStream rhs) { 
    21         ostr = rhs.ostr; 
    2211    } 
    2312 
     
    2514 
    2615    public void write( byte[] b ){ 
    27         ostr.write(b); 
    28     } 
    29  
    30     public void write(String c) { 
    31         ostr.write(c); 
     16        foreach( bv; b ){ 
     17            write(bv); 
     18        } 
    3219    } 
    3320 
    3421    public void write( byte[] b, int off, int len ){ 
    35         implMissing( __FILE__, __LINE__ ); 
     22        write(b[off .. off+len]); 
    3623    } 
    3724 
    3825    public void flush(){ 
    39         ostr.flush(); 
    4026    } 
    4127 
    4228    public void close(){ 
    43         ostr.flush(); 
    44         implMissing( __FILE__, __LINE__ ); 
    4529    } 
    46  
    47  
    4830} 
    4931