Re: output streams

2009-07-02 Thread J.V.
to flush the CodedOutputStream. > > You should just do this instead: > > byte[] data = person.build().toByteArray(); > > On Thu, Jul 2, 2009 at 12:44 AM, J.V. <mailto:jvsr...@gmail.com>> wrote: > > > I'm trying to get the following to work but not

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 --~--~-~--~~---

output streams

2009-07-01 Thread J.V.
I'm trying to get the following to work but nothing is being written to the output stream. any ideas? private void testEncode() throws Exception { OutputStream out = new ByteArrayOutputStream(); CodedOutputStream cos = CodedOutputStream.newInstance(out); Person.perso

Java jar - downloadable? or only compilable?

2009-07-01 Thread J.V.
In order to get the Java implementation I have to compile some C++ code, but have limited resources on my machine at this time to install a compiler. Where can I get the Java jar to drop into my project for Win32? thanks J.V. --~--~-~--~~~---~--~~ You received

Re: where are the examples

2009-07-01 Thread J.V.
thanks, which product(s) does Google use internally or find most beneficial? Kenton Varda wrote: > You could look at one of the open source RPC implementations listed here: > > http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#RPC_Implementations > --~--~-~--~~~