code: @Override
      public boolean isFinished() {
          
        //Return -1 here because if we are closed or finished, we're at the end of the stream
          if(isClosed){
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "Stream is closed so it is finished");
              return true;
          }
          //Call into the HttpInboundServiceContext to find out if the headers and body
          //have been fully read by the HTTP Channel, then return the result
          boolean isFinished = this.httpin.isFinished();
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "isFinished returning : " + isFinished);
          }
          return isFinished;
      }
docs: /* (non-Javadoc)
  @see javax.servlet.ServletInputStream#isFinished()