code: protected void flushBuffer() throws IOException {
  		if (capacity == 0) {
  			ostream.write(buffer);
  			capacity = BITS_IN_BYTE;
  			buffer = 0;
  			len++;
  		}
  	}
docs: If buffer is full, write it out and reset internal state.
  
  @throws IOException
  IO exception