All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.ifarchive.glk.ArrayRegistry

public interface ArrayRegistry
The retained array registry allows a user program to be called when arrays are retained and released.

In Java, do this by implementing the ArrayRegistry interface, and calling Glk.setArrayRegistry().

See Also:
setArrayRegistry

Method Index

 o reg(Object, String)
Register an array.
 o unreg(Object, String, Object)
Unregister an array.

Methods

 o reg
 public abstract Object reg(Object obj,
                            String typecode)
Register an array.

Parameters:
obj - The array to register. It will be an array type.
typecode - The object's Glk type.
Returns:
A dispatch rock that will be associated with this object.
 o unreg
 public abstract void unreg(Object obj,
                            String typecode,
                            Object rock)
Unregister an array.

Parameters:
obj - The array to unregister.
typecode - The object's Glk type.
rock - The object's dispatch rock.

All Packages  Class Hierarchy  This Package  Previous  Next  Index