Package loci.poi.util
Class ArrayUtil
java.lang.Object
loci.poi.util.ArrayUtil
Utility classes for dealing with arrays.
- Version:
- $Id: ArrayUtil.java 489730 2006-12-22 19:18:16Z bayard $
- Author:
- Glen Stampoultzis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidarraycopy(byte[] src, int src_position, byte[] dst, int dst_position, int length) This is really a debugging version ofSystem.arraycopy().static voidarrayMoveWithin(Object[] array, int moveFrom, int moveTo, int numToMove) Moves a number of entries in an array to another point in the array, shifting those inbetween as required.
-
Constructor Details
-
ArrayUtil
public ArrayUtil()
-
-
Method Details
-
arraycopy
public static void arraycopy(byte[] src, int src_position, byte[] dst, int dst_position, int length) This is really a debugging version ofSystem.arraycopy(). Use it to provide better exception messages when copying arrays around. For production use it's better to use the original for speed. -
arrayMoveWithin
Moves a number of entries in an array to another point in the array, shifting those inbetween as required.- Parameters:
array- The array to altermoveFrom- The (0 based) index of the first entry to movemoveTo- The (0 based) index of the positition to move tonumToMove- The number of entries to move
-