Re: [protobuf] Encoding/Decoding of data - Question on CodedInputStream & CodedOutputStream

2010-08-16 Thread Daniel Wright
I'm not completely sure I understand your question, but if you're asking about the difference between writeTo(OutputStream) and writeTo(CodedOutputStream), they're the same -- writeTo(OutputStream) just wraps the OutputStream in a CodedOutputStream and writes to that. Here's the code: public vo

[protobuf] Encoding/Decoding of data - Question on CodedInputStream & CodedOutputStream

2010-08-16 Thread Prakash Rao
Hi, I'm new to PB and would like to know whether it is CodedInputStream & CodedOutputStream which takes care of encoding data while writing into streams. In few APIs I'm directly using InputStream & OutputStream taken from HTTP URL connection class and I would like to know if the data will be encod