ajjava.c
Return length, weight and type information for a sequence
Synopsis
Prototype
jboolean Ajax.seqType (
JNIEnv* env,
jobject obj,
jstring usa
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | usa | Input | usa |
jboolean | | RETURN | true if the sequence exists |
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
See Also
See other functions in this section
Availability
In release 6.4.0
Return length, weight and type information for a seqset
Synopsis
Prototype
jboolean Ajax.seqsetType (
JNIEnv* env,
jobject obj,
jstring usa
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | usa | Input | usa |
jboolean | | RETURN | true if the sequences exist |
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
See Also
See other functions in this section
Availability
In release 6.4.0
Return the uid, gid and home directory of a user
Synopsis
Prototype
jboolean Ajax.userInfo (
JNIEnv* env,
jobject obj,
jstring door,
jstring key
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jstring | key | Input | password |
jboolean | | RETURN | true if the username/password are valid |
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
See Also
See other functions in this section
Availability
In release 6.4.0
Set the uid of the current process
Synopsis
Prototype
jint Ajax.setuid (
JNIEnv* env,
jclass j,
jint uid
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | uid | Input | uid |
jint | | RETURN | 0 on success, -1 if failure |
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
See Also
See other functions in this section
Availability
In release 6.4.0
Set the effective uid of the current process
Synopsis
Prototype
jint Ajax.seteuid (
JNIEnv* env,
jclass j,
jint uid
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | uid | Input | uid |
jint | | RETURN | 0 on success, -1 if failure |
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
See Also
See other functions in this section
Availability
In release 6.4.0
Set the gid of the current process
Synopsis
Prototype
jint Ajax.setgid (
JNIEnv* env,
jclass j,
jint gid
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | gid | Input | gid |
jint | | RETURN | 0 on success, -1 if failure |
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
See Also
See other functions in this section
Availability
In release 6.4.0
Set the effective gid of the current process
Synopsis
Prototype
jint Ajax.setegid (
JNIEnv* env,
jclass j,
jint gid
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | gid | Input | gid |
jint | | RETURN | 0 on success, -1 if failure |
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
See Also
See other functions in this section
Availability
In release 6.4.0
Return the uid of the current process
Synopsis
Prototype
jint Ajax.getuid (
JNIEnv* env,
jclass j
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | | RETURN | uid |
Input
Input & Output
env: | (Modify) | java environment |
Returns
Description
Return the uid of the current process
See Also
See other functions in this section
Availability
In release 6.4.0
Return the gid of the current process
Synopsis
Prototype
jint Ajax.getgid (
JNIEnv* env,
jclass j
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | | RETURN | gid |
Input
Input & Output
env: | (Modify) | java environment |
Returns
Description
Return the gid of the current process
See Also
See other functions in this section
Availability
In release 6.4.0
Return the effective uid of the current process
Synopsis
Prototype
jint Ajax.geteuid (
JNIEnv* env,
jclass j
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | | RETURN | uid |
Input
Input & Output
env: | (Modify) | java environment |
Returns
Description
Return the effective uid of the current process
See Also
See other functions in this section
Availability
In release 6.4.0
Return the effective gid of the current process
Synopsis
Prototype
jint Ajax.getegid (
JNIEnv* env,
jclass j
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jclass | j | Input | java class |
jint | | RETURN | gid |
Input
Input & Output
env: | (Modify) | java environment |
Returns
Description
Return the effective gid of the current process
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | commandline | Input | command to execute |
jstring | environment | Input | shell environment |
jstring | directory | Input | chdir here before execution |
jint | uid | Input | uid for setuid |
jint | gid | Input | gid for setgid |
jboolean | | RETURN | true if success |
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
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jboolean | | RETURN | true if success |
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
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | cline | Input | command line |
jstring | direct | Input | directory to create |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | cline | Input | command line |
jstring | direct | Input | directory to create |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | direct | Input | directory to create |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | filename | Input | file to delete |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | filename | Input | old filename |
jstring | filename2 | Input | new filename |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | direct | Input | directory to delete |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | direct | Input | directory to scan |
jboolean | | RETURN | true if success |
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
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | direct | Input | directory to scan |
jboolean | | RETURN | true if success |
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
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | filename | Input | filename to get |
jbyteArray | | RETURN | contents of file |
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
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | filename | Input | filename to create |
jbyteArray | arr | Input | contents for the file |
jboolean | | RETURN | true if the file was written |
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
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | filename | Input | file to delete |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
JNIEnv* | env | Modify | java environment |
jobject | obj | Input | java object |
jstring | door | Input | username |
jbyteArray | key | Input | password |
jstring | environment | Input | environment |
jstring | filename | Input | usa |
jboolean | | RETURN | true if success |
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.
See Also
See other functions in this section
Availability
In release 6.4.0