> + this.metaData = checkNotNull(meta, "meta");
> + this.readLen = this.metaData.getContentLength().intValue();
> +
> + this.nextPayload = getNextPayload();
> + }
> +
> + @Override
> + public boolean hasNext() {
> + return (nextPayload != null);
> + }
> +
> + @Override
> + public Payload next() {
> + Payload payload;
> +
> + payload = nextPayload;
> If nextPayload is null here, is that OK or an error condition?
`nextPayload` will be null when EOF is reached. When `nextPayload` is null,
`hasNext()` returns false, so it would be an error to call `next()`. That
said, it should return `NoSuchElementException` instead, so I'll fix this.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/192/files#r8113161