public int read() throws IOException { int b = is.read(); if (b > -1) { baos.write(b); } return b;
public int read(byte[] b) throws IOException { return read(b,0,b.length);
    public int read() throws IOException {        int b = is.read();        if (b > -1) {            baos.write(b);        }        return b;    }