@Test public void testSplitWithOffset() { int offset; byte[][] result; offset = 4; result = ByteUtils.split(splitAt5, offset, splitAt5.length - offset); assertEquals(2, result.length); assertArrayEquals(empty, result[0]); assertArrayEquals("56789".getBytes(), result[1]); offset = 5; result = ByteUtils.split(splitAt5, offset, splitAt5.length - offset); assertEquals(1, result.length); assertArrayEquals("56789".getBytes(), result[0]); offset = 5; int len = splitAt5.length - offset - 1; result = ByteUtils.split(splitAt5, offset, len); assertEquals(1, result.length); assertArrayEquals("5678".getBytes(), result[0]); }
public static byte[][] split(byte[] data) { return split(data, 0, data.length); }
ByteUtils { public static byte[][] split(byte[] data) { return split(data, 0, data.length); } }
ByteUtils { public static byte[][] split(byte[] data) { return split(data, 0, data.length); }  }
ByteUtils { public static byte[][] split(byte[] data) { return split(data, 0, data.length); }  static byte[] escape(byte[] in); static byte[] unescape(byte[] in); static byte[][] split(byte[] data); static byte[][] split(byte[] data, int dataOffset, int len); static byte[] concat(byte[]... fields); }
ByteUtils { public static byte[][] split(byte[] data) { return split(data, 0, data.length); }  static byte[] escape(byte[] in); static byte[] unescape(byte[] in); static byte[][] split(byte[] data); static byte[][] split(byte[] data, int dataOffset, int len); static byte[] concat(byte[]... fields);  }