[...]
> the method first checks for an ResponseStream and if the stream is
> null it checks for an ResponseChannel (line 224).
[...]
> Shouldn't that be done the other way around? The channel should be
> preferred.


While thinking about it, I wonder if we need the Input/Outputstream at
all.
Why do we not work with Channels / ByteBuffers only?
A Representation may utilize the

  java.nio.Channels

class and use the

      Channels.newChannel(InputStream in)
and
      Channels.newChannel(OutputStream out)

to convert Input/OutputStreams into channels.

Best regards,
Lars
-- 
http://www.semagia.com

Reply via email to