jbyteArray Java_org_dvb_application_MHPApplication_nameForLanguage(JNIEnv* env, jobject obj, jlong nativeData, jbyteArray iso639code) { int num=(*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetNumberOfNames();
jstring Java_org_dvb_application_MHPApplication_nameForLanguage(JNIEnv* env, jobject obj, jobject nativeData, jstring iso639code) { NativeApplicationData app(nativeData); int num=app.Get()->GetNumberOfNames(); JNI::String code(iso639code);
jbyteArray Java_org_dvb_application_MHPApplication_nameForLanguage(JNIEnv* env, jobject obj, jlong nativeData, jbyteArray iso639code) {   int num=(*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetNumberOfNames();   for (int i=0;i<num;i++) {      ApplicationInfo::cApplication::ApplicationName *name=(*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetName(i);      if (strcasecmp(name->iso639Code, (const char*)iso639code) == 0)         return copyConstCharIntoByteArray(env, (*(ApplicationInfo::cApplication::Ptr *)nativeData)->GetName(i)->name.c_str());   }   return NULL; //exception will be thrown}