ajjava.c
Return length, weight and type information for a sequence
Synopsis
Prototype
jboolean Ajax.seqType (
JNIEnv* env,
jobject obj,
jstring usa
);
Input
| obj: | (Input) | java object |
| usa: | (Input) | usa |
Input & Output
| env: | (Modify) | java environment |
Returns
| jboolean: | true if the sequence exists |
Description
Return length, weight and type information for a sequence
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return length, weight and type information for a seqset
Synopsis
Prototype
jboolean Ajax.seqsetType (
JNIEnv* env,
jobject obj,
jstring usa
);
Input
| obj: | (Input) | java object |
| usa: | (Input) | usa |
Input & Output
| env: | (Modify) | java environment |
Returns
| jboolean: | true if the sequences exist |
Description
Return length, weight and type information for a seqset
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return the uid, gid and home directory of a user
Synopsis
Prototype
jboolean Ajax.userInfo (
JNIEnv* env,
jobject obj,
jstring door,
jstring key
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
Input & Output
| env: | (Modify) | java environment |
Returns
| jboolean: | true if the username/password are valid |
Description
Return the uid, gid and home directory of a user
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the uid of the current process
Synopsis
Prototype
jint Ajax.setuid (
JNIEnv* env,
jclass j,
jint uid
);
Input
| j: | (Input) | java class |
| uid: | (Input) | uid |
Input & Output
| env: | (Modify) | java environment |
Returns
| jint: | 0 on success, -1 if failure |
Description
Set the uid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the effective uid of the current process
Synopsis
Prototype
jint Ajax.seteuid (
JNIEnv* env,
jclass j,
jint uid
);
Input
| j: | (Input) | java class |
| uid: | (Input) | uid |
Input & Output
| env: | (Modify) | java environment |
Returns
| jint: | 0 on success, -1 if failure |
Description
Set the effective uid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the gid of the current process
Synopsis
Prototype
jint Ajax.setgid (
JNIEnv* env,
jclass j,
jint gid
);
Input
| j: | (Input) | java class |
| gid: | (Input) | gid |
Input & Output
| env: | (Modify) | java environment |
Returns
| jint: | 0 on success, -1 if failure |
Description
Set the gid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the effective gid of the current process
Synopsis
Prototype
jint Ajax.setegid (
JNIEnv* env,
jclass j,
jint gid
);
Input
| j: | (Input) | java class |
| gid: | (Input) | gid |
Input & Output
| env: | (Modify) | java environment |
Returns
| jint: | 0 on success, -1 if failure |
Description
Set the effective gid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return the uid of the current process
Synopsis
Prototype
jint Ajax.getuid (
JNIEnv* env,
jclass j
);
Input
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Return the uid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return the gid of the current process
Synopsis
Prototype
jint Ajax.getgid (
JNIEnv* env,
jclass j
);
Input
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Return the gid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return the effective uid of the current process
Synopsis
Prototype
jint Ajax.geteuid (
JNIEnv* env,
jclass j
);
Input
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Return the effective uid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return the effective gid of the current process
Synopsis
Prototype
jint Ajax.getegid (
JNIEnv* env,
jclass j
);
Input
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Return the effective gid of the current process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Fork off new process with given uid & gid, chdir and execute command
return stdout and stderr of the child process
Synopsis
Prototype
jboolean Ajax.fork (
JNIEnv* env,
jobject obj,
jstring commandline,
jstring environment,
jstring directory,
jint uid,
jint gid
);
Input
| obj: | (Input) | java object |
| commandline: | (Input) | command to execute |
| environment: | (Input) | shell environment |
| directory: | (Input) | chdir here before execution |
| uid: | (Input) | uid for setuid |
| gid: | (Input) | gid for setgid |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Fork off new process with given uid & gid, chdir and execute command
return stdout and stderr of the child process
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Verify user and retrieve home directory
Loads outStd,errStd within java.
Sets 'home' in Java
Synopsis
Prototype
jboolean Ajax.userAuth (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Verify user and retrieve home directory
Loads outStd,errStd within java.
Sets 'home' in Java
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Run an EMBOSS program detached
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.forkBatch (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring cline,
jstring direct
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| cline: | (Input) | command line |
| direct: | (Input) | directory to create |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Run an EMBOSS program detached
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Run an EMBOSS program
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.forkEmboss (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring cline,
jstring direct
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| cline: | (Input) | command line |
| direct: | (Input) | directory to create |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Run an EMBOSS program
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Create a directory
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.makeDir (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring direct
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| direct: | (Input) | directory to create |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Create a directory
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Delete a file
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.delFile (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring filename
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| filename: | (Input) | file to delete |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Delete a file
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Rename a file
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.renameFile (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring filename,
jstring filename2
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| filename: | (Input) | old filename |
| filename2: | (Input) | new filename |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Rename a file
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Recursively delete a directory
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.delDir (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring direct
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| direct: | (Input) | directory to delete |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Recursively delete a directory
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Lists regular files
Loads outStd,errStd within java. outStd contains the list
Synopsis
Prototype
jboolean Ajax.listFiles (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring direct
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| direct: | (Input) | directory to scan |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Lists regular files
Loads outStd,errStd within java. outStd contains the list
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Lists files of type 'directory'
Loads outStd,errStd within java. outStd contains the list
Synopsis
Prototype
jboolean Ajax.listDirs (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring direct
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| direct: | (Input) | directory to scan |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Lists files of type 'directory'
Loads outStd,errStd within java. outStd contains the list
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Get a user file
Loads outStd,errStd within java
Sets size (of file),fileok (success) & prnt ([non]printable]
variables in java
Synopsis
Prototype
jbyteArray Ajax.getFile (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring filename
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| filename: | (Input) | filename to get |
Input & Output
| env: | (Modify) | java environment |
Returns
| jbyteArray: | contents of file |
Description
Get a user file
Loads outStd,errStd within java
Sets size (of file),fileok (success) & prnt ([non]printable]
variables in java
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Write a user file
Loads outStd,errStd within java
Synopsis
Prototype
jboolean Ajax.putFile (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring filename,
jbyteArray arr
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| filename: | (Input) | filename to create |
| arr: | (Input) | contents for the file |
Input & Output
| env: | (Modify) | java environment |
Returns
| jboolean: | true if the file was written |
Description
Write a user file
Loads outStd,errStd within java
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return sequence attributes
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.seqAttrib (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring filename
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| filename: | (Input) | file to delete |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Return sequence attributes
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return seqset attributes
Loads outStd,errStd within java.
Synopsis
Prototype
jboolean Ajax.seqsetAttrib (
JNIEnv* env,
jobject obj,
jstring door,
jbyteArray key,
jstring environment,
jstring filename
);
Input
| obj: | (Input) | java object |
| door: | (Input) | username |
| key: | (Input) | password |
| environment: | (Input) | environment |
| filename: | (Input) | usa |
Input & Output
| env: | (Modify) | java environment |
Returns
Description
Return seqset attributes
Loads outStd,errStd within java.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0