On Tue, 2011-08-09 at 14:34 -0500, Jon Brisbin wrote: > I did look at those but I wasn't able to divine from them what I need to > adapt to my situation. I'm not starting with a File. I'm not use a > FileChannel, either. I have simply a chunk of data that needs to be streamed > to a PUT endpoint. I need to call ContentEncoder.write() each time I get a > chunk. My question is basically, if I do this, does the ByteBuffer get sent > down the wire to the server so I can reclaim that buffer and call write() > again with a different chunk of data? >
_Some_ content of ByteBuffer gets sent down the wire. But you can always compact it and use the remaining capacity to add more data. Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
