public void close() throws IOException {

        if ( baos != null ) {
            baos.close();
            baos = null;
        }
        if( dos != null ) {
            dos.close();
            dos= null;
        }
    }
this doesnt do much, its main purpose is to stop complaints
about 'outputStream not closed...'.

@throws IOException
plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/png/PNGImageEncoder.java