Java String Sub String substring(byte[] array, int start)

Here you can find the source of substring(byte[] array, int start)

Description

substring

License

Open Source License

Declaration

public static byte[] substring(byte[] array, int start) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] substring(byte[] array, int start) {
        return substring(array, start, array.length);
    }/*  w  ww.j a  v  a  2  s  . co m*/

    public static byte[] substring(byte[] array, int start, int end) {
        if (end <= start)
            return null;
        int length = (end - start);

        byte[] newArray = new byte[length];
        System.arraycopy(array, start, newArray, 0, length);
        return newArray;
    }
}

Related

  1. subStrByBytes(String str, int len, String tail)
  2. substrByLength(String str, int start, int size, String markCode)
  3. subStrBytes2(String str, int byteLength)
  4. substrCount(String haystack, String needle)
  5. subStrIfNeed(final String str, int num)
  6. substring(byte[] src, int start, int len)
  7. substring(char[] s, int start, int end)
  8. substring(final String pSource, final String pBeginBoundaryString, final String pEndBoundaryString, final int pOffset)
  9. substring(final String s, int start)