src/libtsduck/java/private/tsjni.cpp
//----------------------------------------------------------------------------
// Get/set the value of 'String' fields in a Java object.
//----------------------------------------------------------------------------
Get/set the value of 'String' fields in a Java object.
Get / set the value of ' String ' fields in a Java object .
ts::UString ts::jni::GetStringField(JNIEnv* env, jobject obj, const char* fieldName)
{
    if (env == nullptr || obj == nullptr || fieldName == nullptr || env->ExceptionCheck()) {
        return UString();
    }
    const jstring jstr = jstring(GetObjectField(env, obj, fieldName, JCS_STRING));
    return jstr == nullptr ? UString() : ToUString(env, jstr);
}
ts :: UString ts :: jni :: GetStringField ( JNIEnv * env , jobject obj , const char * fieldName ) { if ( env == nullptr || obj == nullptr || fieldName == nullptr || env -> ExceptionCheck ( ) ) { return UString ( ) ; } const jstring jstr = jstring ( GetObjectField ( env , obj , fieldName , JCS_STRING ) ) ; return jstr == nullptr ? UString ( ) : ToUString ( env , jstr ) ; }
Get/set the value of 'String' fields in a Java object.
Get / set the value of ' String ' fields in a Java object .