@Override
 public synchronized void write(int b) throws IOException {
   checkOpen();
   if (currentOutputCell == null || currentOutputCell.cellBytesRemaining() == 0)
     flushCurrentOutputCell();
   currentOutputCell.putByte(b);
 }