Next: Mixing with C++, Previous: Methods, Up: About CNI
CNI provides a number of utility functions for
working with Java Java String objects.
The names and interfaces are analogous to those of JNI.
Returns a Java
Stringobject with characters from the C string chars up to the index len in that array.
Returns a Java
Stringmade up of len bytes from bytes.
As above but the length of the
Stringisstrlen(bytes).
Returns a
Stringwhich is made up of the UTF encoded characters present in the C string bytes.
Returns a pointer to an array of characters making up the
Stringstr.