code: @Override
      public int read() throws IOException
      {   
          synchronized(this){
              int value = 0;
              if(closed) {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isErrorEnabled())
                      Tr.error(tc, "stream.is.closed.no.read.write");
                  throw new IOException(Tr.formatMessage(tc, "stream.is.closed.no.read.write"));
              }
  
              if (this._inBuffer != null) {
                  value = this._inBuffer.read();
              }
              else {
                  value = this.in.read();
              }
              return value;
          }
      }
docs: /* (non-Javadoc)
  @see com.ibm.ws.webcontainer.srt.SRTInputStream#read()