The parser is written in C++.  You would need to either call it via JNI or
execute protoc as a subprocess.  protoc's --descriptor_set_out option will
produce a FileDescriptorSet protocol buffer, as defined in descriptor.proto,
which you can then parse in Java to produce FileDescriptors.

On Tue, Jan 5, 2010 at 7:37 AM, Rosa <[email protected]> wrote:

> How to generate File Descriptor from .proto file in Java code without
> generating .java files?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<protobuf%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>
>
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

Reply via email to