| 136 | } |
| 137 | |
| 138 | jobject CRJNIEnv::enumByNativeId( const char * classname, int id ) |
| 139 | { |
| 140 | jclass cl = env->FindClass(classname); |
| 141 | if ( cl ) { |
| 142 | jmethodID method = env->GetStaticMethodID(cl, "byId", "(I)Lorg/coolreader/crengine/DocumentFormat;"); |
| 143 | if ( method ) { |
| 144 | return env->CallStaticObjectMethod(cl, method, (jint)id); |
| 145 | } |
| 146 | } |
| 147 | return NULL; |
| 148 | } |
| 149 | |
| 150 | LVStreamRef CRJNIEnv::jbyteArrayToStream( jbyteArray array ) |
| 151 | { |
no outgoing calls
no test coverage detected