code: protected synchronized void write(int b) throws IOException {
  		if (closed) {
  			throw new IOException("The buffer is closed");
  		}
  
  		verifyBufferSize(1);
  		buf[writepos] = (byte) b;
  		writepos++;
  
  		notifyAll();
  	}
docs: Write a byte array to the buffer
  
  @param b
  
  @throws IOException