encode to binary stream example

2009-07-02 Thread J.V.
Which class in the ProtoBuf Java api would be used to encode to a binary stream? Is there a short example or tutorial on how to encode (using Java) to a binary stream for RCP? a short code snippet on how to encode/decode would be super helpful. thanks jrv

Re: encode to binary stream example

2009-07-02 Thread Kenton Varda
Just call writeTo(): void writeToStream(Message message, OutputStream out) { message.writeTo(out); } On Thu, Jul 2, 2009 at 7:47 AM, J.V. jvsr...@gmail.com wrote: Which class in the ProtoBuf Java api would be used to encode to a binary stream? Is there a short example or tutorial on how