public final class SafeArray extends Object
This class is provided for rare circumstances where the Java code needs to control SAFEARRAY more precisely.
Users are encouraged to use plain Java arrays as much as possible. For example, the following Java method:
void foo( short[] args );would be bridged to the following COM method:
HRESULT foo( [in] SAFEARRAY(short)* args );
This works for the most of the cases, and is much easier to use.
Modifier and Type | Class and Description |
---|---|
static class |
SafeArray.Bound
Bound of an array index.
|
Constructor and Description |
---|
SafeArray(Variant.Type type,
SafeArray.Bound[] bounds) |
public SafeArray(Variant.Type type, SafeArray.Bound[] bounds)
public Object get(int... indices)
public void set(int... indices)
Copyright © 2014. All rights reserved.