[JXTA discuss] [PATCH] Create a jxta_id from a C string

Henry Jen <[email protected]> Tue, 13 Sep 2005 21:39:08 -0700
Newsgroups gmane.comp.java.jxta.general
Message-ID <[email protected]>
Hi,

Currently we have to use Jstring in order to create a Jxta_id from a 
string, but many times we have a C style string, it would be convenient 
to have a similar function.

This patch provide a jxta_id_from_c_ctr function for just that purpose. 
To achieve that, I also change the internal jxta_id virtual method to 
take a unique portion instead of the whole Jsting, this enable us to 
remove redundant operation for scan the string.

Please help to review this patch, I will use this function for fixing 
issue 156, where the ERM is implemented incorrectly.

Cheers,
Henry