docs: private void checkLength(boolean eof) {
          if (eof) {
              if (this.dataLength != this.expectedLength) {
                  throw new BceClientException("Data read (" + this.dataLength +
                          ") has a different length than the expected (" + this.expectedLength +
                          ")");
              }
          } else if (this.dataLength > this.expectedLength) {
              throw new BceClientException("More data read (" + this.dataLength + ") than expected (" +
                      this.expectedLength + ")");
          }
      }