Lines Matching refs:env
47 #define ThrowException(env, type, msg) { \ argument
48 env->ThrowNew(env->FindClass(type), msg); }
149 ::rtl::OUString StorageContainer::jstring2ustring(JNIEnv * env, jstring jstr) in jstring2ustring() argument
151 if (JNI_FALSE != env->ExceptionCheck()) in jstring2ustring()
153 env->ExceptionClear(); in jstring2ustring()
160 const jchar* pChar = env->GetStringChars(jstr,&bCopy); in jstring2ustring()
161 jsize len = env->GetStringLength(jstr); in jstring2ustring()
165 env->ReleaseStringChars(jstr,pChar); in jstring2ustring()
168 if (JNI_FALSE != env->ExceptionCheck()) in jstring2ustring()
170 env->ExceptionClear(); in jstring2ustring()
248 …TStreamMap::mapped_type StorageContainer::registerStream(JNIEnv * env,jstring name, jstring key,sa… in registerStream() argument
252 ::rtl::OUString sKey = jstring2ustring(env,key); in registerStream()
261 ::rtl::OUString sOrgName = StorageContainer::jstring2ustring(env,name); in registerStream()
311 StorageContainer::throwJavaException(e,env); in registerStream()
319 void StorageContainer::revokeStream( JNIEnv * env,jstring name, jstring key) in revokeStream() argument
322 TStorages::iterator aFind = rMap.find(jstring2ustring(env,key)); in revokeStream()
325 … aFind->second.second.erase(removeURLPrefix(jstring2ustring(env,name),aFind->second.first.second)); in revokeStream()
328 …TStreamMap::mapped_type StorageContainer::getRegisteredStream( JNIEnv * env,jstring name, jstring … in getRegisteredStream() argument
332 TStorages::iterator aFind = rMap.find(jstring2ustring(env,key)); in getRegisteredStream()
336 …or aStreamFind = aFind->second.second.find(removeURLPrefix(jstring2ustring(env,name),aFind->second… in getRegisteredStream()
344 void StorageContainer::throwJavaException(const Exception& _aException,JNIEnv * env) in throwJavaException() argument
346 if (JNI_FALSE != env->ExceptionCheck()) in throwJavaException()
347 env->ExceptionClear(); in throwJavaException()
350 env->ThrowNew(env->FindClass("java/io/IOException"), cstr.getStr()); in throwJavaException()