/** reads problem from file */
JNIEXPORT
jint JNISCIPREADEROPB(readOpb)(
   JNIEnv*               env,                /**< JNI environment variable */
   jobject               jobj,               /**< JNI class pointer */
   jlong                 jscip,              /**< SCIP data structure */
   jlong                 jreader,            /**< the file reader itself */
   jstring               jname               /**< full path and name of file to read, or NULL if stdin should be used */
   )
{
   SCIP* scip;
   SCIP_READER* reader;
   const char* name;
   jboolean iscopy;
   SCIP_RESULT result;

   /* convert JNI pointer into C pointer */
   scip = (SCIP*) (size_t) jscip;
   reader = (SCIP_READER*) (size_t) jreader;

   assert(scip != NULL);
   assert(reader != NULL);

   /* convert JNI string into C const char* */
   name = (*env)->GetStringUTFChars(env, jname, &iscopy);
   assert(iscopy);

   JNISCIP_CALL( SCIPreadOpb(scip, reader, name, &result) );

   (*env)->ReleaseStringUTFChars(env, jname, name);

   return (jint) result;
}
/** problem reading method of reader */
static
SCIP_DECL_READERREAD(readerReadWbo)
{  /*lint --e{715}*/

   SCIP_CALL( SCIPreadOpb(scip, reader, filename, result) );

   return SCIP_OKAY;
}