FileDocCategorySizeDatePackage
Util.javaAPI DocAndroid 1.5 API6713Wed May 06 22:41:04 BST 2009org.apache.harmony.nio

Util

public final class Util extends Object

Fields Summary
Constructors Summary
private Util()

        super();
    
Methods Summary
public static voidassertArrayIndex(char[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(int arrayLength, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > arrayLength) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(java.lang.Object[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(boolean[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(byte[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(short[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(int[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(long[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(float[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }
    
public static voidassertArrayIndex(double[] array, int offset, int length)

        if (offset < 0 || length < 0) {
            // nio.05=Negative index specified
            throw new IndexOutOfBoundsException(Messages.getString("nio.05")); //$NON-NLS-1$
        }
        if ((long) offset + (long) length > array.length) {
            // nio.04=Size mismatch
            throw new IndexOutOfBoundsException(Messages.getString("nio.04")); //$NON-NLS-1$
        }