src/libtsduck/java/private/tsjni.cpp
//----------------------------------------------------------------------------
// Convert between Java string and ts::UString.
//----------------------------------------------------------------------------
Convert between Java string and ts::UString.
Convert between Java string and ts :: UString .
jstring ts::jni::ToJString(JNIEnv* env, const UString& str)
{
    if (env == nullptr || env->ExceptionCheck()) {
        return nullptr;
    }
    else {
        return env->NewString(ToJChar(str), jsize(str.size()));
    }
}
jstring ts :: jni :: ToJString ( JNIEnv * env , const UString & str ) { if ( env == nullptr || env -> ExceptionCheck ( ) ) { return nullptr ; } else { return env -> NewString ( ToJChar ( str ) , jsize ( str . size ( ) ) ) ; } }
Convert between Java string and ts::UString.
Convert between Java string and ts :: UString .