ajjava.c


Function Ajax.seqType

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

Function Ajax.seqsetType

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

Function Ajax.userInfo

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

Function Ajax.setuid

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

Function Ajax.seteuid

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

Function Ajax.setgid

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

Function Ajax.setegid

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

Function Ajax.getuid

Return the uid of the current process

Synopsis

Prototype

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

Input

j:(Input)java class

Input & Output

env:(Modify)java environment

Returns

jint:uid

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

Function Ajax.getgid

Return the gid of the current process

Synopsis

Prototype

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

Input

j:(Input)java class

Input & Output

env:(Modify)java environment

Returns

jint:gid

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

Function Ajax.geteuid

Return the effective uid of the current process

Synopsis

Prototype

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

Input

j:(Input)java class

Input & Output

env:(Modify)java environment

Returns

jint:uid

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

Function Ajax.getegid

Return the effective gid of the current process

Synopsis

Prototype

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

Input

j:(Input)java class

Input & Output

env:(Modify)java environment

Returns

jint:gid

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

Function Ajax.fork

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

jboolean:true if success

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

Function Ajax.userAuth

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

jboolean:true if success

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

Function Ajax.forkBatch

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

jboolean:true if success

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

Function Ajax.forkEmboss

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

jboolean:true if success

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

Function Ajax.makeDir

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

jboolean:true if success

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

Function Ajax.delFile

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

jboolean:true if success

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

Function Ajax.renameFile

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

jboolean:true if success

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

Function Ajax.delDir

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

jboolean:true if success

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

Function Ajax.listFiles

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

jboolean:true if success

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

Function Ajax.listDirs

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

jboolean:true if success

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

Function Ajax.getFile

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

Function Ajax.putFile

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

Function Ajax.seqAttrib

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

jboolean:true if success

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

Function Ajax.seqsetAttrib

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

jboolean:true if success

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