Class SafeArray


  • public class SafeArray
    extends java.lang.Object
    • Constructor Detail

      • SafeArray

        public SafeArray()
      • SafeArray

        public SafeArray​(int vt)
      • SafeArray

        public SafeArray​(int vt,
                         int celems)
      • SafeArray

        public SafeArray​(int vt,
                         int celems1,
                         int celems2)
      • SafeArray

        public SafeArray​(int vt,
                         int[] lbounds,
                         int[] celems)
      • SafeArray

        public SafeArray​(java.lang.String s)
    • Method Detail

      • init

        protected void init​(int vt,
                            int[] lbounds,
                            int[] celems)
                     throws COMError
        Throws:
        COMError
      • getNumLocks

        public int getNumLocks()
      • asString

        public java.lang.String asString()
                                  throws COMError
        Throws:
        COMError
      • reinterpretType

        public void reinterpretType​(int vt)
                             throws COMError
        Throws:
        COMError
      • getLBound

        public int getLBound​(int dim)
                      throws COMError
        Throws:
        COMError
      • getUBound

        public int getUBound​(int dim)
                      throws COMError
        Throws:
        COMError
      • getElemSize

        public int getElemSize()
      • fromCharArray

        public void fromCharArray​(char[] ja)
                           throws COMError
        Throws:
        COMError
      • fromIntArray

        public void fromIntArray​(int[] ja)
                          throws COMError
        Throws:
        COMError
      • fromShortArray

        public void fromShortArray​(short[] ja)
                            throws COMError
        Throws:
        COMError
      • fromDoubleArray

        public void fromDoubleArray​(double[] ja)
                             throws COMError
        Throws:
        COMError
      • fromStringArray

        public void fromStringArray​(java.lang.String[] ja)
                             throws COMError
        Throws:
        COMError
      • fromByteArray

        public void fromByteArray​(byte[] ja)
                           throws COMError
        Throws:
        COMError
      • fromFloatArray

        public void fromFloatArray​(float[] ja)
                            throws COMError
        Throws:
        COMError
      • fromBooleanArray

        public void fromBooleanArray​(boolean[] ja)
                              throws COMError
        Throws:
        COMError
      • toDoubleArray

        public double[] toDoubleArray()
                               throws COMError
        Throws:
        COMError
      • toStringArray

        public java.lang.String[] toStringArray()
                                         throws COMError
        Throws:
        COMError
      • toBooleanArray

        public boolean[] toBooleanArray()
                                 throws COMError
        Throws:
        COMError
      • getChar

        public char getChar​(int sa_idx)
                     throws COMError
        Throws:
        COMError
      • getChar

        public char getChar​(int sa_idx1,
                            int sa_idx2)
                     throws COMError
        Throws:
        COMError
      • setChar

        public void setChar​(int sa_idx,
                            char c)
                     throws COMError
        Throws:
        COMError
      • setChar

        public void setChar​(int sa_idx1,
                            int sa_idx2,
                            char c)
                     throws COMError
        Throws:
        COMError
      • getChars

        public void getChars​(int sa_idx,
                             int nelems,
                             char[] ja,
                             int ja_start)
                      throws COMError
        Throws:
        COMError
      • setChars

        public void setChars​(int sa_idx,
                             int nelems,
                             char[] ja,
                             int ja_start)
                      throws COMError
        Throws:
        COMError
      • getInt

        public int getInt​(int sa_idx1,
                          int sa_idx2)
                   throws COMError
        Throws:
        COMError
      • setInt

        public void setInt​(int sa_idx,
                           int c)
                    throws COMError
        Throws:
        COMError
      • setInt

        public void setInt​(int sa_idx1,
                           int sa_idx2,
                           int c)
                    throws COMError
        Throws:
        COMError
      • getInts

        public void getInts​(int sa_idx,
                            int nelems,
                            int[] ja,
                            int ja_start)
                     throws COMError
        Throws:
        COMError
      • setInts

        public void setInts​(int sa_idx,
                            int nelems,
                            int[] ja,
                            int ja_start)
                     throws COMError
        Throws:
        COMError
      • getShort

        public short getShort​(int sa_idx)
                       throws COMError
        Throws:
        COMError
      • getShort

        public short getShort​(int sa_idx1,
                              int sa_idx2)
                       throws COMError
        Throws:
        COMError
      • setShort

        public void setShort​(int sa_idx,
                             short c)
                      throws COMError
        Throws:
        COMError
      • setShort

        public void setShort​(int sa_idx1,
                             int sa_idx2,
                             short c)
                      throws COMError
        Throws:
        COMError
      • getShorts

        public void getShorts​(int sa_idx,
                              int nelems,
                              short[] ja,
                              int ja_start)
                       throws COMError
        Throws:
        COMError
      • setShorts

        public void setShorts​(int sa_idx,
                              int nelems,
                              short[] ja,
                              int ja_start)
                       throws COMError
        Throws:
        COMError
      • getDouble

        public double getDouble​(int sa_idx)
                         throws COMError
        Throws:
        COMError
      • getDouble

        public double getDouble​(int sa_idx1,
                                int sa_idx2)
                         throws COMError
        Throws:
        COMError
      • setDouble

        public void setDouble​(int sa_idx,
                              double c)
                       throws COMError
        Throws:
        COMError
      • setDouble

        public void setDouble​(int sa_idx1,
                              int sa_idx2,
                              double c)
                       throws COMError
        Throws:
        COMError
      • getDoubles

        public void getDoubles​(int sa_idx,
                               int nelems,
                               double[] ja,
                               int ja_start)
                        throws COMError
        Throws:
        COMError
      • setDoubles

        public void setDoubles​(int sa_idx,
                               int nelems,
                               double[] ja,
                               int ja_start)
                        throws COMError
        Throws:
        COMError
      • getString

        public java.lang.String getString​(int sa_idx)
                                   throws COMError
        Throws:
        COMError
      • getString

        public java.lang.String getString​(int sa_idx1,
                                          int sa_idx2)
                                   throws COMError
        Throws:
        COMError
      • setString

        public void setString​(int sa_idx,
                              java.lang.String c)
                       throws COMError
        Throws:
        COMError
      • setString

        public void setString​(int sa_idx1,
                              int sa_idx2,
                              java.lang.String c)
                       throws COMError
        Throws:
        COMError
      • getStrings

        public void getStrings​(int sa_idx,
                               int nelems,
                               java.lang.String[] ja,
                               int ja_start)
                        throws COMError
        Throws:
        COMError
      • setStrings

        public void setStrings​(int sa_idx,
                               int nelems,
                               java.lang.String[] ja,
                               int ja_start)
                        throws COMError
        Throws:
        COMError
      • getByte

        public byte getByte​(int sa_idx)
                     throws COMError
        Throws:
        COMError
      • getByte

        public byte getByte​(int sa_idx1,
                            int sa_idx2)
                     throws COMError
        Throws:
        COMError
      • setByte

        public void setByte​(int sa_idx,
                            byte c)
                     throws COMError
        Throws:
        COMError
      • setByte

        public void setByte​(int sa_idx1,
                            int sa_idx2,
                            byte c)
                     throws COMError
        Throws:
        COMError
      • getBytes

        public void getBytes​(int sa_idx,
                             int nelems,
                             byte[] ja,
                             int ja_start)
                      throws COMError
        Throws:
        COMError
      • setBytes

        public void setBytes​(int sa_idx,
                             int nelems,
                             byte[] ja,
                             int ja_start)
                      throws COMError
        Throws:
        COMError
      • getFloat

        public float getFloat​(int sa_idx)
                       throws COMError
        Throws:
        COMError
      • getFloat

        public float getFloat​(int sa_idx1,
                              int sa_idx2)
                       throws COMError
        Throws:
        COMError
      • setFloat

        public void setFloat​(int sa_idx,
                             float c)
                      throws COMError
        Throws:
        COMError
      • setFloat

        public void setFloat​(int sa_idx1,
                             int sa_idx2,
                             float c)
                      throws COMError
        Throws:
        COMError
      • getFloats

        public void getFloats​(int sa_idx,
                              int nelems,
                              float[] ja,
                              int ja_start)
                       throws COMError
        Throws:
        COMError
      • setFloats

        public void setFloats​(int sa_idx,
                              int nelems,
                              float[] ja,
                              int ja_start)
                       throws COMError
        Throws:
        COMError
      • getBoolean

        public boolean getBoolean​(int sa_idx)
                           throws COMError
        Throws:
        COMError
      • getBoolean

        public boolean getBoolean​(int sa_idx1,
                                  int sa_idx2)
                           throws COMError
        Throws:
        COMError
      • setBoolean

        public void setBoolean​(int sa_idx,
                               boolean c)
                        throws COMError
        Throws:
        COMError
      • setBoolean

        public void setBoolean​(int sa_idx1,
                               int sa_idx2,
                               boolean c)
                        throws COMError
        Throws:
        COMError
      • getBooleans

        public void getBooleans​(int sa_idx,
                                int nelems,
                                boolean[] ja,
                                int ja_start)
                         throws COMError
        Throws:
        COMError
      • setBooleans

        public void setBooleans​(int sa_idx,
                                int nelems,
                                boolean[] ja,
                                int ja_start)
                         throws COMError
        Throws:
        COMError
      • getVariants

        public void getVariants​(int sa_idx,
                                int nelems,
                                VARIANT[] ja,
                                int ja_start)
                         throws COMError
        Throws:
        COMError
      • setVariants

        public void setVariants​(int sa_idx,
                                int nelems,
                                VARIANT[] ja,
                                int ja_start)
                         throws COMError
        Throws:
        COMError
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object