if (len > 256){
if (len > 256 || count + len >= BUF_MAX){
    public void write(byte[] b, int len, int pad) throws IOException {        if (len > 256){            if (count > 0)                out.write(buf, 0, count);            out.write(b, 0, len);            out.write(textPad, 0, pad);            count = 0;        }        else {            System.arraycopy(b, 0, buf, count, len);            count += len + pad;        }    }