JavaTM 2 Platform
Standard Ed. 6

类 java.lang.ArrayIndexOutOfBoundsException
的使用

使用 ArrayIndexOutOfBoundsException 的软件包
java.lang.reflect 提供类和接口,以获得关于类和对象的反射信息。 
javax.sound.midi 提供用于 MIDI(音乐乐器数字接口)数据的 I/O、序列化和合成的接口和类。 
 

java.lang.reflectArrayIndexOutOfBoundsException 的使用
 

抛出 ArrayIndexOutOfBoundsExceptionjava.lang.reflect 中的方法
static Object Array.get(Object array, int index)
          返回指定数组对象中索引组件的值。
static boolean Array.getBoolean(Object array, int index)
          以 boolean 形式返回指定数组对象中索引组件的值。
static byte Array.getByte(Object array, int index)
          以 byte 形式返回指定数组对象中索引组件的值。
static char Array.getChar(Object array, int index)
          以 char 形式返回指定数组对象中索引组件的值。
static double Array.getDouble(Object array, int index)
          以 double 形式返回指定数组对象中索引组件的值。
static float Array.getFloat(Object array, int index)
          以 float 形式返回指定数组对象中索引组件的值。
static int Array.getInt(Object array, int index)
          以 int 形式返回指定数组对象中索引组件的值。
static long Array.getLong(Object array, int index)
          以 long 形式返回指定数组对象中索引组件的值。
static short Array.getShort(Object array, int index)
          以 short 形式返回指定数组对象中索引组件的值。
static void Array.set(Object array, int index, Object value)
          将指定数组对象中索引组件的值设置为指定的新值。
static void Array.setBoolean(Object array, int index, boolean z)
          将指定数组对象中索引组件的值设置为指定的 boolean 值。
static void Array.setByte(Object array, int index, byte b)
          将指定数组对象中索引组件的值设置为指定的 byte 值。
static void Array.setChar(Object array, int index, char c)
          将指定数组对象中索引组件的值设置为指定的 char 值。
static void Array.setDouble(Object array, int index, double d)
          将指定数组对象中索引组件的值设置为指定的 double 值。
static void Array.setFloat(Object array, int index, float f)
          将指定数组对象中索引组件的值设置为指定的 float 值。
static void Array.setInt(Object array, int index, int i)
          将指定数组对象中索引组件的值设置为指定的 int 值。
static void Array.setLong(Object array, int index, long l)
          将指定数组对象中索引组件的值设置为指定的 long 值。
static void Array.setShort(Object array, int index, short s)
          将指定数组对象中索引组件的值设置为指定的 short 值。
 

javax.sound.midiArrayIndexOutOfBoundsException 的使用
 

抛出 ArrayIndexOutOfBoundsExceptionjavax.sound.midi 中的方法
 MidiEvent Track.get(int index)
          获得位于指定索引处的事件。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only