def.setInput(buf, off, len); deflate();
byte[] b = new byte[1]; b[0] = (byte) bval; write(b, 0, 1);
  public void write(byte[] buf, int off, int len) throws IOException  {    def.setInput(buf, off, len);    deflate();  }