byte[] b = new byte[1]; b[0] = (byte) bval; write (b, 0, 1);
if (inbuf == null) { inbuf = new byte[128]; } else if (inbufLength == inbuf.length) { def.setInput (inbuf, 0, inbufLength); deflate (); inbufLength = 0; } inbuf[inbufLength++] = (byte) bval;
  public void write (int bval) throws IOException  {    byte[] b = new byte[1];    b[0] = (byte) bval;    write (b, 0, 1);  }