view dwt/dwthelper/OutputStream.d @ 242:32a6819fef61

Fix implMissing for ImageLoader.save, thx yidabu for reporting.
author Frank Benoit <benoit@tionex.de>
date Tue, 24 Jun 2008 22:05:28 +0200
parents ab60f3309436
children
line wrap: on
line source

/**
 * Authors: Frank Benoit <keinfarbton@googlemail.com>
 */
module dwt.dwthelper.OutputStream;

import dwt.dwthelper.utils;

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(){
    }
}