@Override public void close() throws IOException {
  if (!closed) {
    try {
      if (!eof) {
        exhaustInputStream(this);
      }
    }
  finally {
      eof=true;
      closed=true;
    }
  }
}

@ Override public void close ( ) throws IOException { if ( ! closed ) { try { if ( ! eof ) { exhaustInputStream ( this ) ; } } finally { eof = true ; closed = true ; } } }
upon close , this reads the remainder of the chunked message , leaving the underlying socket at a position to start reading the next response without scanning .
