@Test public void testSplitWithLimit() { byte[][] expectedResult = Bytes.toByteArrays(new String[] {"random", "stuff::"}); byte[][] splitResult = ByteUtil.split(source2, sep2, 2); assertSplitResult(expectedResult, splitResult); expectedResult = Bytes.toByteArrays(new String[] {"random", "stuff", ""}); splitResult = ByteUtil.split(source2, sep2, 100); assertSplitResult(expectedResult, splitResult); expectedResult = new byte[][] {source2}; splitResult = ByteUtil.split(source2, sep2, 1); assertSplitResult(expectedResult, splitResult); }
public static byte[][] split(byte[] source, byte[] separator) { return split(source, separator, -1); }
ByteUtil { public static byte[][] split(byte[] source, byte[] separator) { return split(source, separator, -1); } }
ByteUtil { public static byte[][] split(byte[] source, byte[] separator) { return split(source, separator, -1); }  }
ByteUtil { public static byte[][] split(byte[] source, byte[] separator) { return split(source, separator, -1); }  static byte[][] split(byte[] source, byte[] separator); static byte[][] split(byte[] source, byte[] separator, int limit); static List<Range> splitRanges(byte[] source, byte[] separator); static List<Range> splitRanges(byte[] source, byte[] separator, int limit); static byte[] join(byte[] separator, byte[]... components); static int indexOf(byte[] array, byte[] target, int fromIndex); static byte[] safeCopy(byte[] source, int offset, int length); static long getValueAsLong(final byte[] key,
      final Map<byte[], byte[]> taskValues); static String getValueAsString(final byte[] key,
      final Map<byte[], byte[]> taskValues); static double getValueAsDouble(byte[] key,
      NavigableMap<byte[], byte[]> infoValues); static int getValueAsInt(byte[] key, Map<byte[], byte[]> infoValues); }
ByteUtil { public static byte[][] split(byte[] source, byte[] separator) { return split(source, separator, -1); }  static byte[][] split(byte[] source, byte[] separator); static byte[][] split(byte[] source, byte[] separator, int limit); static List<Range> splitRanges(byte[] source, byte[] separator); static List<Range> splitRanges(byte[] source, byte[] separator, int limit); static byte[] join(byte[] separator, byte[]... components); static int indexOf(byte[] array, byte[] target, int fromIndex); static byte[] safeCopy(byte[] source, int offset, int length); static long getValueAsLong(final byte[] key,
      final Map<byte[], byte[]> taskValues); static String getValueAsString(final byte[] key,
      final Map<byte[], byte[]> taskValues); static double getValueAsDouble(byte[] key,
      NavigableMap<byte[], byte[]> infoValues); static int getValueAsInt(byte[] key, Map<byte[], byte[]> infoValues);  }