root/dwt/dwthelper/OutputStream.d

Revision 242:32a6819fef61, 495 bytes (checked in by Frank Benoit <benoit@tionex.de>, 5 months ago)

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

Line 
1 /**
2  * Authors: Frank Benoit <keinfarbton@googlemail.com>
3  */
4 module dwt.dwthelper.OutputStream;
5
6 import dwt.dwthelper.utils;
7
8 public abstract class OutputStream {
9
10     public this(){
11     }
12
13     public abstract void write( int b );
14
15     public void write( byte[] b ){
16         foreach( bv; b ){
17             write(bv);
18         }
19     }
20
21     public void write( byte[] b, int off, int len ){
22         write(b[off .. off+len]);
23     }
24
25     public void flush(){
26     }
27
28     public void close(){
29     }
30 }
Note: See TracBrowser for help on using the browser.