comparison base/src/java/io/OutputStream.d @ 27:1bf55a6eb092

Renamed java tree to base
author Frank Benoit <benoit@tionex.de>
date Sat, 21 Mar 2009 11:33:57 +0100
parents java/src/java/io/OutputStream.d@6dd524f61e62
children 536e43f63c81
comparison
equal deleted inserted replaced
26:f589fc20a5f9 27:1bf55a6eb092
1 /**
2 * Authors: Frank Benoit <keinfarbton@googlemail.com>
3 */
4 module java.io.OutputStream;
5
6 import java.lang.all;
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 }
31
32