public class SafeArray extends JacobObject
| Constructor and Description |
|---|
SafeArray()
Constructor.
|
SafeArray(int vt)
Constructor.
|
SafeArray(int vt, int celems)
Constructor for a single dimensional array whose lower bounds is 0 and whose upper bound is specified as a parameter
|
SafeArray(int vt, int[] lbounds, int[] celems)
Constructor with support for N-dimensional array support
|
SafeArray(int vt, int celems1, int celems2)
Creates a two dimensional SafeArray whose base indexes are 0.
|
SafeArray(String s)
Convert a string to a VT_UI1 array.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Convert a VT_UI1 array to string.
(将VT_UI1数组转换为字符串。)
|
Object |
clone() |
protected void |
finalize() |
void |
fromBooleanArray(boolean[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromByteArray(byte[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromCharArray(char[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromDoubleArray(double[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromFloatArray(float[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromIntArray(int[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromLongArray(long[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromShortArray(short[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromStringArray(String[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
void |
fromVariantArray(Variant[] ja)
populate the safe array from the passed in array of data
(从传入的数据数组中填充安全数组)
|
boolean |
getBoolean(int sa_idx)
boolean access
(布尔访问)
|
boolean |
getBoolean(int[] indices)
get boolean value from N-dimensional array
(从N维数组获取布尔值)
|
boolean |
getBoolean(int sa_idx1, int sa_idx2)
boolean access
(布尔访问)
|
void |
getBooleans(int sa_idx, int nelems, boolean[] ja, int ja_start)
boolean access
(布尔访问)
|
byte |
getByte(int sa_idx)
byte access
(字节访问)
|
byte |
getByte(int[] indices)
get byte value from N-dimensional array
(从N维数组获取字节值)
|
byte |
getByte(int sa_idx1, int sa_idx2)
byte access
(字节访问)
|
void |
getBytes(int sa_idx, int nelems, byte[] ja, int ja_start)
Fills byte array from contents of this array
(从该数组的内容填充字节数组)
|
char |
getChar(int sa_idx)
char access
(字符访问)
|
char |
getChar(int[] indices)
get char value from N-dimensional array
(从N维数组获取char值)
|
char |
getChar(int sa_idx1, int sa_idx2)
char access
(字符访问)
|
void |
getChars(int sa_idx, int nelems, char[] ja, int ja_start)
char access
(字符访问)
|
double |
getDouble(int sa_idx)
double access
(双重访问)
|
double |
getDouble(int[] indices)
get double value from N-dimensional array
(从N维数组中获取双精度值)
|
double |
getDouble(int sa_idx1, int sa_idx2)
double access
(双重访问)
|
void |
getDoubles(int sa_idx, int nelems, double[] ja, int ja_start)
double access
(双重访问)
|
int |
getElemSize() |
int |
getFeatures() |
float |
getFloat(int sa_idx)
float access
(浮动访问)
|
float |
getFloat(int[] indices)
get float value from N-dimensional array
(从N维数组获取浮点值)
|
float |
getFloat(int sa_idx1, int sa_idx2)
float access
(浮动访问)
|
void |
getFloats(int sa_idx, int nelems, float[] ja, int ja_start)
float access
(浮动访问)
|
int |
getInt(int sa_idx)
get int from an single dimensional array
(从一维数组获取整数)
|
int |
getInt(int[] indices)
get int value from N-dimensional array
(从N维数组获取整数值)
|
int |
getInt(int sa_idx1, int sa_idx2)
get int from 2 dimensional array
(从二维数组获取整数)
|
void |
getInts(int sa_idx, int nelems, int[] ja, int ja_start)
retrieves a group of ints from a single dimensional array
(从一维数组中检索一组整数)
|
int |
getLBound() |
int |
getLBound(int dim) |
long |
getLong(int sa_idx)
get int from an single dimensional array
(从一维数组获取整数)
|
long |
getLong(int[] indices)
get long value from N-dimensional array
(从N维数组中获取长值)
|
long |
getLong(int sa_idx1, int sa_idx2)
get long from 2 dimensional array
(从二维数组变长)
|
void |
getLongs(int sa_idx, int nelems, long[] ja, int ja_start)
retrieves a group of longs from a single dimensional array
(从一维数组中检索一组long)
|
int |
getNumDim() |
int |
getNumLocks()
not implemented.
(未实现。)
|
short |
getShort(int sa_idx)
short access
(短暂访问)
|
short |
getShort(int[] indices)
get short value from N-dimensional array
(从N维数组中获取短值)
|
short |
getShort(int sa_idx1, int sa_idx2)
short access
(短暂访问)
|
void |
getShorts(int sa_idx, int nelems, short[] ja, int ja_start)
short access
(短暂访问)
|
String |
getString(int sa_idx)
string access
(字符串访问)
|
String |
getString(int[] indices)
get String value from N-dimensional array
(从N维数组获取字符串值)
|
String |
getString(int sa_idx1, int sa_idx2)
string access
(字符串访问)
|
void |
getStrings(int sa_idx, int nelems, String[] ja, int ja_start)
string access
(字符串访问)
|
int |
getUBound() |
int |
getUBound(int dim) |
Variant |
getVariant(int sa_idx)
variant access
(变体访问)
|
Variant |
getVariant(int[] indices)
get Variant value from N-dimensional array
(从N维数组获取Variant值)
|
Variant |
getVariant(int sa_idx1, int sa_idx2)
variant access
(变体访问)
|
void |
getVariants(int sa_idx, int nelems, Variant[] ja, int ja_start)
variant access
(变体访问)
|
int |
getvt() |
protected void |
init(int vt, int[] lbounds, int[] celems) |
void |
reinit(SafeArray sa)
Does anyone want to document this?
(有人要记录吗?)
|
void |
reinterpretType(int vt)
Does anyone want to document this?
(有人要记录吗?)
|
void |
safeRelease()
Finalizers call this method.
(终结器调用此方法。)
|
void |
setBoolean(int[] indices, boolean c)
set boolean value in N-dimensional array
(在N维数组中设置布尔值)
|
void |
setBoolean(int sa_idx, boolean c)
boolean access
(布尔访问)
|
void |
setBoolean(int sa_idx1, int sa_idx2, boolean c)
boolean access
(布尔访问)
|
void |
setBooleans(int sa_idx, int nelems, boolean[] ja, int ja_start)
boolean access
(布尔访问)
|
void |
setByte(int[] indices, byte c)
set byte value in N-dimensional array
(在N维数组中设置字节值)
|
void |
setByte(int sa_idx, byte c)
byte access
(字节访问)
|
void |
setByte(int sa_idx1, int sa_idx2, byte c)
byte access
(字节访问)
|
void |
setBytes(int sa_idx, int nelems, byte[] ja, int ja_start)
fills array with passed in bytes
(用传入的字节填充数组)
|
void |
setChar(int[] indices, char c)
set char value in N-dimensional array
(在N维数组中设置char值)
|
void |
setChar(int sa_idx, char c)
char access
(字符访问)
|
void |
setChar(int sa_idx1, int sa_idx2, char c)
char access
(字符访问)
|
void |
setChars(int sa_idx, int nelems, char[] ja, int ja_start)
char access
(字符访问)
|
void |
setDouble(int[] indices, double c)
set double value in N-dimensional array
(在N维数组中设置双精度值)
|
void |
setDouble(int sa_idx, double c)
double access
(双重访问)
|
void |
setDouble(int sa_idx1, int sa_idx2, double c)
double access
(双重访问)
|
void |
setDoubles(int sa_idx, int nelems, double[] ja, int ja_start)
double access
(双重访问)
|
void |
setFloat(int[] indices, float c)
set float value in N-dimensional array
(在N维数组中设置浮点值)
|
void |
setFloat(int sa_idx, float c)
float access
(浮动访问)
|
void |
setFloat(int sa_idx1, int sa_idx2, float c)
float access
(浮动访问)
|
void |
setFloats(int sa_idx, int nelems, float[] ja, int ja_start)
float access
(浮动访问)
|
void |
setInt(int[] indices, int c)
set int value in N-dimensional array
(在N维数组中设置int值)
|
void |
setInt(int sa_idx, int c)
sets the int value of an element in a single dimensional array
(设置一维数组中元素的int值)
|
void |
setInt(int sa_idx1, int sa_idx2, int c)
sets the int value of a 2 dimensional array
(设置二维数组的int值)
|
void |
setInts(int sa_idx, int nelems, int[] ja, int ja_start)
sets a group of ints into a single dimensional array
(将一组整数设置为一维数组)
|
void |
setLong(int[] indices, long c)
set long value in N-dimensional array
(在N维数组中设置long值)
|
void |
setLong(int sa_idx1, int sa_idx2, long c)
sets the long value of a 2 dimensional array
(设置二维数组的long值)
|
void |
setLong(int sa_idx, long c)
sets the long value of an element in a single dimensional array
(设置一维数组中元素的long值)
|
void |
setLongs(int sa_idx, int nelems, long[] ja, int ja_start)
sets a group of longs into a single dimensional array
(将一组long设置为一维数组)
|
void |
setShort(int[] indices, short c)
set short value in N-dimensional array
(在N维数组中设置短值)
|
void |
setShort(int sa_idx1, int sa_idx2, short c)
short access
(短暂访问)
|
void |
setShort(int sa_idx, short c)
short access
(短暂访问)
|
void |
setShorts(int sa_idx, int nelems, short[] ja, int ja_start)
short access
(短暂访问)
|
void |
setString(int[] indices, String c)
set Stringvalue in N-dimensional array
(在N维数组中设置Stringvalue)
|
void |
setString(int sa_idx1, int sa_idx2, String c)
puts a string into an element in a two dimensional array.
(将字符串放入二维数组中的元素中。)
|
void |
setString(int sa_idx, String c)
puts a string into an element in a single dimensional safe array
(将字符串放入一维安全数组中的元素)
|
void |
setStrings(int sa_idx, int nelems, String[] ja, int ja_start)
string access
(字符串访问)
|
void |
setVariant(int[] indices, Variant v)
set Variant value in N-dimensional array
(在N维数组中设置Variant值)
|
void |
setVariant(int sa_idx1, int sa_idx2, Variant c)
variant access
(变体访问)
|
void |
setVariant(int sa_idx, Variant c)
variant access
(变体访问)
|
void |
setVariants(int sa_idx, int nelems, Variant[] ja, int ja_start)
variant access
(变体访问)
|
boolean[] |
toBooleanArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
byte[] |
toByteArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
char[] |
toCharArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
double[] |
toDoubleArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
float[] |
toFloatArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
int[] |
toIntArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
long[] |
toLongArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
short[] |
toShortArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
String |
toString()
Standard toString() Warning, this creates new Variant objects!
(标准toString()警告,这将创建新的Variant对象!)
|
String[] |
toStringArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
Variant[] |
toVariantArray()
Retrieves the data from the array cast to a Java data type
(从转换为Java数据类型的数组中检索数据)
|
debug, getBuildDate, getBuildVersion, isDebugEnabledpublic SafeArray()
public SafeArray(int vt)
vt - type of array
(-数组类型)
public SafeArray(int vt,
int celems)
vt - type of the array
(-数组的类型)
celems - length of the array
(-数组的长度)
public SafeArray(int vt,
int celems1,
int celems2)
vt - Type of the array
(-数组类型)
celems1 - length of the array in first dimension
(-一维数组的长度)
celems2 - length of the array in second dimension
(-二维数组的长度)
public SafeArray(int vt,
int[] lbounds,
int[] celems)
You create an N-D SafeArray by: SafeArray sa = new SafeArray(Variant.VariantVariant, new int[] {0,0,0,0}, new int[] {4,4,4,4}); Where the 1st array is lower bounds and 2nd has the lengths of each dimension *
(支持N维数组支持的构造方法您可以通过以下方式创建ND SafeArray:SafeArray sa = new SafeArray(Variant.VariantVariant,new int [] {0,0,0,0},new int [] {4,4,4 ,4});其中第一个数组为下界,第二个数组为每个维的长度*)vt -
(-)
lbounds -
(-)
celems -
(-)
public SafeArray(String s)
s - source string
(-源字符串)
public String asString()
public void fromBooleanArray(boolean[] ja)
ja -
(-)
public void fromByteArray(byte[] ja)
ja -
(-)
public void fromCharArray(char[] ja)
ja -
(-)
public void fromDoubleArray(double[] ja)
ja -
(-)
public void fromFloatArray(float[] ja)
ja -
(-)
public void fromIntArray(int[] ja)
ja -
(-)
public void fromLongArray(long[] ja)
ja -
(-)
public void fromShortArray(short[] ja)
ja -
(-)
public void fromStringArray(String[] ja)
ja -
(-)
public void fromVariantArray(Variant[] ja)
ja -
(-)
public boolean getBoolean(int sa_idx)
sa_idx -
(-)
public boolean getBoolean(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public boolean getBoolean(int sa_idx1,
int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getBooleans(int sa_idx,
int nelems,
boolean[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public byte getByte(int sa_idx)
sa_idx -
(-)
public byte getByte(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public byte getByte(int sa_idx1,
int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getBytes(int sa_idx,
int nelems,
byte[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public char getChar(int sa_idx)
sa_idx -
(-)
public char getChar(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public char getChar(int sa_idx1,
int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getChars(int sa_idx,
int nelems,
char[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public double getDouble(int sa_idx)
sa_idx -
(-)
public double getDouble(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public double getDouble(int sa_idx1,
int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getDoubles(int sa_idx,
int nelems,
double[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public int getElemSize()
public int getFeatures()
public float getFloat(int sa_idx)
sa_idx -
(-)
public float getFloat(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public float getFloat(int sa_idx1,
int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getFloats(int sa_idx,
int nelems,
float[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public int getInt(int sa_idx)
sa_idx - array index
(-数组索引)
public int getInt(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public int getInt(int sa_idx1,
int sa_idx2)
sa_idx1 - array index first dimension
(-数组索引第一维)
sa_idx2 - array index of second dimension
(-二维数组索引)
public void getInts(int sa_idx,
int nelems,
int[] ja,
int ja_start)
sa_idx - the index in the array to start the get
(-数组中开始获取的索引)
nelems - number of elements to retrieve
(-要检索的元素数)
ja - the structure to be filled with the ints
(-要用整数填充的结构)
ja_start - the start point in the java int array to start filling
(-java int数组中的开始填充的起点)
public long getLong(int sa_idx)
sa_idx - array index
(-数组索引)
public long getLong(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public long getLong(int sa_idx1,
int sa_idx2)
sa_idx1 - array index first dimension
(-数组索引第一维)
sa_idx2 - array index of second dimension
(-二维数组索引)
public void getLongs(int sa_idx,
int nelems,
long[] ja,
int ja_start)
sa_idx - the index in the array to start the get
(-数组中开始获取的索引)
nelems - number of elements to retrieve
(-要检索的元素数)
ja - the structure to be filled with the longs
(-填充多头的结构)
ja_start - the start point in the java longs array to start filling
(-Java long数组中开始填充的起点)
public int getLBound()
public int getLBound(int dim)
dim - the dimension we are checking in a multidimensional array
(-我们在多维数组中检查的维度)
public int getNumDim()
public int getNumLocks()
public short getShort(int sa_idx)
sa_idx -
(-)
public short getShort(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public short getShort(int sa_idx1,
int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getShorts(int sa_idx,
int nelems,
short[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public String getString(int sa_idx)
sa_idx -
(-)
public String getString(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public String getString(int sa_idx1, int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getStrings(int sa_idx,
int nelems,
String[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public int getUBound()
public int getUBound(int dim)
dim - the dimension we are checking in a multidimensional array
(-我们在多维数组中检查的维度)
public Variant getVariant(int sa_idx)
sa_idx -
(-)
public Variant getVariant(int[] indices)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
public Variant getVariant(int sa_idx1, int sa_idx2)
sa_idx1 -
(-)
sa_idx2 -
(-)
public void getVariants(int sa_idx,
int nelems,
Variant[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public int getvt()
protected void init(int vt,
int[] lbounds,
int[] celems) public void reinit(SafeArray sa)
sa -
(-)
public void reinterpretType(int vt)
vt - the variant type?
(-变体类型?)
public void safeRelease()
safeRelease in class
JacobObject
public void setBoolean(int sa_idx,
boolean c)
sa_idx -
(-)
c -
(-)
public void setBoolean(int[] indices,
boolean c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setBoolean(int sa_idx1,
int sa_idx2,
boolean c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setBooleans(int sa_idx,
int nelems,
boolean[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public void setByte(int sa_idx,
byte c)
sa_idx -
(-)
c -
(-)
public void setByte(int[] indices,
byte c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setByte(int sa_idx1,
int sa_idx2,
byte c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setBytes(int sa_idx,
int nelems,
byte[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public void setChar(int sa_idx,
char c)
sa_idx -
(-)
c -
(-)
public void setChar(int[] indices,
char c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setChar(int sa_idx1,
int sa_idx2,
char c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setChars(int sa_idx,
int nelems,
char[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public void setDouble(int sa_idx,
double c)
sa_idx -
(-)
c -
(-)
public void setDouble(int[] indices,
double c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setDouble(int sa_idx1,
int sa_idx2,
double c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setDoubles(int sa_idx,
int nelems,
double[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public void setFloat(int sa_idx,
float c)
sa_idx -
(-)
c -
(-)
public void setFloat(int[] indices,
float c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setFloat(int sa_idx1,
int sa_idx2,
float c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setFloats(int sa_idx,
int nelems,
float[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public void setInt(int sa_idx,
int c)
sa_idx - index into the array
(-索引到数组)
c - the value to be set
(-要设置的值)
public void setInt(int[] indices,
int c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setInt(int sa_idx1,
int sa_idx2,
int c)
sa_idx1 - index on the first dimension
(-第一维索引)
sa_idx2 - index on the second dimension
(-二维索引)
c - the value to be set
(-要设置的值)
public void setInts(int sa_idx,
int nelems,
int[] ja,
int ja_start)
sa_idx - the index of the start of the array to put into
(-要放入的数组开始的索引)
nelems - number of elements to be copied
(-要复制的元素数)
ja - the new int values to be put into the array
(-要放入数组中的新int值)
ja_start - the start index in the array that we are copying into SafeArray
(-我们要复制到SafeArray中的数组的起始索引)
public void setLong(int sa_idx,
long c)
sa_idx - index into the array
(-索引到数组)
c - the value to be set
(-要设置的值)
public void setLong(int[] indices,
long c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setLong(int sa_idx1,
int sa_idx2,
long c)
sa_idx1 - index on the first dimension
(-第一维索引)
sa_idx2 - index on the second dimension
(-二维索引)
c - the value to be set
(-要设置的值)
public void setLongs(int sa_idx,
int nelems,
long[] ja,
int ja_start)
sa_idx - the index of the start of the array to put into
(-要放入的数组开始的索引)
nelems - number of elements to be copied
(-要复制的元素数)
ja - the new long values to be put into the array
(-要放入数组中的新long值)
ja_start - the start index in the array that we are copying into SafeArray
(-我们要复制到SafeArray中的数组的起始索引)
public void setShort(int sa_idx1,
int sa_idx2,
short c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setShort(int sa_idx,
short c)
sa_idx -
(-)
c -
(-)
public void setShort(int[] indices,
short c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setShorts(int sa_idx,
int nelems,
short[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public void setString(int sa_idx1,
int sa_idx2,
String c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setString(int sa_idx,
String c)
sa_idx -
(-)
c -
(-)
public void setString(int[] indices,
String c)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
c -
(-)
public void setStrings(int sa_idx,
int nelems,
String[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public void setVariant(int sa_idx1,
int sa_idx2,
Variant c)
sa_idx1 -
(-)
sa_idx2 -
(-)
c -
(-)
public void setVariant(int sa_idx,
Variant c)
sa_idx -
(-)
c -
(-)
public void setVariant(int[] indices,
Variant v)
indices - - length must equal Dimension of SafeArray
(--长度必须等于SafeArray的尺寸)
v -
(-)
public void setVariants(int sa_idx,
int nelems,
Variant[] ja,
int ja_start)
sa_idx -
(-)
nelems -
(-)
ja -
(-)
ja_start -
(-)
public boolean[] toBooleanArray()
public byte[] toByteArray()
public char[] toCharArray()
public double[] toDoubleArray()
public float[] toFloatArray()
public int[] toIntArray()
public long[] toLongArray()
public short[] toShortArray()
public String toString()
public String[] toStringArray()
public Variant[] toVariantArray()
http://jacob-project.sourceforge.net