Java Array arrayGetCenter(byte[] array, int location, int length)

Here you can find the source of arrayGetCenter(byte[] array, int location, int length)

Description

array Get Center

License

Open Source License

Declaration

public static byte[] arrayGetCenter(byte[] array, int location, int length) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static byte[] arrayGetCenter(byte[] array, int location, int length) {
        if (length <= 0) {
            return new byte[0];
        }/* w ww  . j  a v  a 2 s  .  co  m*/

        byte[] result;

        result = new byte[length];

        try {
            System.arraycopy(array, location, result, 0, length);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return result;
    }
}

Related

  1. arrayed(int arrays, String inner)
  2. arrayEndsWith(final byte[] array, final byte[] str)
  3. arrayExclude(double[] src, int excludeIndex)
  4. arrayFirstIndexOf(final T[] array, final T value)
  5. arrayFlatten(final int[][] arr)
  6. arrayIsHave(String[] strs, String str)
  7. arrayLookup(int[] ar, int keystart, int keyend, int forbidden)
  8. arrayMember(String[] array, String member)
  9. arrayMinus(double[] w, double[] v)