Mercurial > projects > dwt2
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/base/src/java/io/OutputStream.d Sat Mar 21 11:33:57 2009 +0100 @@ -0,0 +1,32 @@ +/** + * Authors: Frank Benoit <keinfarbton@googlemail.com> + */ +module java.io.OutputStream; + +import java.lang.all; + +public abstract class OutputStream { + + public this(){ + } + + public abstract void write( int b ); + + public void write( byte[] b ){ + foreach( bv; b ){ + write(bv); + } + } + + public void write( byte[] b, int off, int len ){ + write(b[off .. off+len]); + } + + public void flush(){ + } + + public void close(){ + } +} + +