ajjava.c


Function Ajax.seqType

Return length, weight and type information for a sequence

Prototype

jboolean Ajax.seqType (
      JNIEnv* env,
      jobject obj,
      jstring usa
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringusaInputusa
jboolean RETURNtrue if the sequence exists

From EMBOSS 2.3.0


Function Ajax.seqsetType

Return length, weight and type information for a seqset

Prototype

jboolean Ajax.seqsetType (
      JNIEnv* env,
      jobject obj,
      jstring usa
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringusaInputusa
jboolean RETURNtrue if the sequences exist

From EMBOSS 2.3.0


Function Ajax.userInfo

Return the uid, gid and home directory of a user

Prototype

jboolean Ajax.userInfo (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jstring key
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jstringkeyInputpassword
jboolean RETURNtrue if the username/password are valid

From EMBOSS 2.3.0


Function Ajax.setuid

Set the uid of the current process

Prototype

jint Ajax.setuid (
      JNIEnv* env,
      jclass j,
      jint uid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintuidInputuid
jint RETURN0 on success, -1 if failure

From EMBOSS 2.3.0


Function Ajax.seteuid

Set the effective uid of the current process

Prototype

jint Ajax.seteuid (
      JNIEnv* env,
      jclass j,
      jint uid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintuidInputuid
jint RETURN0 on success, -1 if failure

From EMBOSS 2.3.0


Function Ajax.setgid

Set the gid of the current process

Prototype

jint Ajax.setgid (
      JNIEnv* env,
      jclass j,
      jint gid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintgidInputgid
jint RETURN0 on success, -1 if failure

From EMBOSS 2.3.0


Function Ajax.setegid

Set the effective gid of the current process

Prototype

jint Ajax.setegid (
      JNIEnv* env,
      jclass j,
      jint gid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jintgidInputgid
jint RETURN0 on success, -1 if failure

From EMBOSS 2.3.0


Function Ajax.getuid

Return the uid of the current process

Prototype

jint Ajax.getuid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNuid

From EMBOSS 2.3.0


Function Ajax.getgid

Return the gid of the current process

Prototype

jint Ajax.getgid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNgid

From EMBOSS 2.3.0


Function Ajax.geteuid

Return the effective uid of the current process

Prototype

jint Ajax.geteuid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNuid

From EMBOSS 2.3.0


Function Ajax.getegid

Return the effective gid of the current process

Prototype

jint Ajax.getegid (
      JNIEnv* env,
      jclass j
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jclassjInputjava class
jint RETURNgid

From EMBOSS 2.3.0


Function Ajax.fork

Fork off new process with given uid & gid, chdir and execute command return stdout and stderr of the child process

Prototype

jboolean Ajax.fork (
      JNIEnv* env,
      jobject obj,
      jstring commandline,
      jstring environment,
      jstring directory,
      jint uid,
      jint gid
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringcommandlineInputcommand to execute
jstringenvironmentInputshell environment
jstringdirectoryInputchdir here before execution
jintuidInputuid for setuid
jintgidInputgid for setgid
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.userAuth

Verify user and retrieve home directory Loads outStd,errStd within java. Sets 'home' in Java

Prototype

jboolean Ajax.userAuth (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.forkBatch

Run an EMBOSS program detached Loads outStd,errStd within java.

Prototype

jboolean Ajax.forkBatch (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring cline,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringclineInputcommand line
jstringdirectInputdirectory to create
jboolean RETURNtrue if success

From EMBOSS 2.4.0


Function Ajax.forkEmboss

Run an EMBOSS program Loads outStd,errStd within java.

Prototype

jboolean Ajax.forkEmboss (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring cline,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringclineInputcommand line
jstringdirectInputdirectory to create
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.makeDir

Create a directory Loads outStd,errStd within java.

Prototype

jboolean Ajax.makeDir (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to create
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.delFile

Delete a file Loads outStd,errStd within java.

Prototype

jboolean Ajax.delFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfile to delete
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.renameFile

Rename a file Loads outStd,errStd within java.

Prototype

jboolean Ajax.renameFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename,
      jstring filename2
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputold filename
jstringfilename2Inputnew filename
jboolean RETURNtrue if success

From EMBOSS 2.5.0


Function Ajax.delDir

Recursively delete a directory Loads outStd,errStd within java.

Prototype

jboolean Ajax.delDir (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to delete
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.listFiles

Lists regular files Loads outStd,errStd within java. outStd contains the list

Prototype

jboolean Ajax.listFiles (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to scan
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.listDirs

Lists files of type 'directory' Loads outStd,errStd within java. outStd contains the list

Prototype

jboolean Ajax.listDirs (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring direct
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringdirectInputdirectory to scan
jboolean RETURNtrue if success

From EMBOSS 2.3.0


Function Ajax.getFile

Get a user file Loads outStd,errStd within java Sets size (of file),fileok (success) & prnt ([non]printable] variables in java

Prototype

jbyteArray Ajax.getFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfilename to get
jbyteArray RETURNcontents of file

From EMBOSS 2.3.0


Function Ajax.putFile

Write a user file Loads outStd,errStd within java

Prototype

jboolean Ajax.putFile (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename,
      jbyteArray arr
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfilename to create
jbyteArrayarrInputcontents for the file
jboolean RETURNtrue if the file was written

From EMBOSS 2.3.0


Function Ajax.seqAttrib

Return sequence attributes Loads outStd,errStd within java.

Prototype

jboolean Ajax.seqAttrib (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputfile to delete
jboolean RETURNtrue if success

From EMBOSS 2.5.0


Function Ajax.seqsetAttrib

Return seqset attributes Loads outStd,errStd within java.

Prototype

jboolean Ajax.seqsetAttrib (
      JNIEnv* env,
      jobject obj,
      jstring door,
      jbyteArray key,
      jstring environment,
      jstring filename
);

TypeNameRead/WriteDescription
JNIEnv*envModifyjava environment
jobjectobjInputjava object
jstringdoorInputusername
jbyteArraykeyInputpassword
jstringenvironmentInputenvironment
jstringfilenameInputusa
jboolean RETURNtrue if success

From EMBOSS 2.5.0