public final class JCommon
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
JCommon(int handle,
int numvars,
JConnection conn) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the object and releases the server-side handle
|
protected void |
finalize() |
JDynArray |
getDA(int index)
Retrieves a dynamic array from a specific position in a common block
|
JFile |
getFile(int index)
Retrieves a file variable from a specific position in a common block
|
void |
setDA(int index,
JDynArray dynArray)
Stores a dynamic array into a specific position in a common block
|
void |
setFile(int index,
JFile file)
Stores a file variable into a specific position in a common block
|
protected JCommon(int handle, int numvars, JConnection conn)
public JDynArray getDA(int index) throws JException
index
- Position from which to retrieve a dynamic arrayJException
public JFile getFile(int index) throws JException
index
- Position from which to retrieve a file variableJException
public void setDA(int index, JDynArray dynArray) throws JException
index
- Position in which to store the dynamic arraydynArray
- Dynamic array to storeJException
public void setFile(int index, JFile file) throws JException
index
- Position in which to store the file variablefile
- File variable to storeJException
public void close() throws JException
JException
protected void finalize()
finalize
in class java.lang.Object