>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help User

# Java jserver class

The jserver class is a wrapper for the J Automation objects JEXEServer and JDLLServer. The jserver.class is in package isi.ijserver (Iverson Software Inc.) and is distributed with the J system. To use a J object you import isi.ijserver into a Java source file and use the class methods and fields.

The jserver class provides identical access for all JVMs to J Automation objects and it provides methods that simplify mapping J data to Java. The jserver class uses native methods in a C++ dll. There are two versions of the native method dll: jsnmms.dll (J Server Native Method MS) and jsnmns.dll (Netscape and other JVMs).

The jserver class uses native methods and must exist in the local file system. The class and native method dlls must be in the J system\extras\java\classes\isi\jserver directory. This path is added to the Java classpath environment variable when J is installed.

// constants - results of getType()
final static int TYPEBOOL=1;
final static int TYPEBYTE=2;
final static int TYPEINT=4;
final static int TYPEDOUBLE=8;
final static int TYPEBOX=32;

// methods
synchronized void start(int dllv) // 0 for JEXEServer, 1 for JDLLServer
int close() // close J object
int Do(String s)
int DoR(String s) // Do with formatted result
int Show(boolean b)
int Log(boolean b)

// methods for getting J data
int Get(String s) // get data for J variable
int getType()
int getRank()
int getElements()
int[] getShape()

boolean getBool()
char getChar()
int getInt()
double getDouble()

boolean[] getBools()
byte[] getBytes()
int[] getInts()
double[] getDoubles()
String getString()

// methods for setting J data
int Set(String s, Object x)

int Set(String s, byte x)
int Set(String s, int x)
int Set(String s, double x)

>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help User