> +
> +         return payload;
> +      }
> +
> +      @Override
> +      public void remove() {
> +         throw new UnsupportedOperationException();
> +      }
> +
> +      @Override
> +      public Iterator<Payload> iterator() {
> +         return this;
> +      }
> +
> +      private Payload getNextPayload() {
> +         byte[] content = new byte[readLen];

Can you write this with Guava ```ByteStreams.limit```?  This avoids the extra 
copy in memory.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/192/files#r8215004

Reply via email to