How It Works

Interfacing to a Java System


An existing Java system for some interactive display or task can often be adapted to use the S/Java interface with minimal recoding. Examples include dynamic graphics display of surfaces and spreadsheet editors.
  1. The Java code for data input is dropped, and replaced by getting an S object from the interface. The detailed data transmission is handled by the object server.

  2. The remaining Java code will often be usable ``as is''.

  3. On the S side, the programmer just needs to write a function to generate the data needed (e.g., an array for the graphics display, a matrix or data frame for the spreadsheet). Methods provided with the S/Java interface will again handle the data transmission transparently.