code: public void write(int b) throws IOException
  	{
  		//PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. 
  		// User will not be allowed to write more data if the above case is met, outputstreamClosed will be true and default is false.
  		if (!(WCCustomProperties.FINISH_RESPONSE_ON_CLOSE) || !outputstreamClosed ) //PK89810
  		{
  		if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
  			logger.logp(Level.FINE, CLASS_NAME,"write", "write --> "+b);
          }
  		if (!_hasWritten && obs != null)
  		{
  			_hasWritten = true;
  			if (obsList!=null){
  				for (int i=0;i<obsList.size();i++){
  					obsList.get(i).alertFirstWrite();
  				}
  			}
  			else {
  			obs.alertFirstWrite();
  		}
  		}
  		if (limit > -1)
  		{
  			if (total >= limit)
  			{
  				throw new WriteBeyondContentLengthException();
  			}
  		}
  		if (count == buf.length)
  		{
  			response.setFlushMode(false);
  			flushBytes();
  			response.setFlushMode(true);
  		}
  		buf[count++] = (byte) b;
  		total++;
  	}
  		else
  		{//PK89810 start
  			if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
  				logger.logp(Level.FINE, CLASS_NAME,"write", " write not allowed, outputstreamClosed value -->" + outputstreamClosed);
  			
  		}//PK89810 End
  	}
docs: Writes a byte. This method will block until the byte is actually
  written.
  @param b the byte
  @exception IOException if an I/O error has occurred