@Test public void testSplitLargeStringIfNecessary() { assertThat((String) VistaStringUtils.splitLargeStringIfNecessary("foo"), is("foo")); char[] chars = new char[] {'a','b','c'}; StringBuilder longString = new StringBuilder(); for (char c : chars) { char[] bunchOChars = new char[245]; Arrays.fill(bunchOChars, c); longString.append(bunchOChars); } longString.append("ddd"); List<String> split = (List<String>) VistaStringUtils.splitLargeStringIfNecessary(longString.toString()); assertThat(split.size(), is(4)); assertThat(split.get(0).length(), is(245)); assertThat(split.get(1).length(), is(245)); assertThat(split.get(2).length(), is(245)); assertThat(split.get(3).length(), is(3)); }
public static Object splitLargeStringIfNecessary(String s) { return splitLargeStringIfNecessary(s, 245); }
VistaStringUtils { public static Object splitLargeStringIfNecessary(String s) { return splitLargeStringIfNecessary(s, 245); } }
VistaStringUtils { public static Object splitLargeStringIfNecessary(String s) { return splitLargeStringIfNecessary(s, 245); }  }
VistaStringUtils { public static Object splitLargeStringIfNecessary(String s) { return splitLargeStringIfNecessary(s, 245); }  static String piece(String s); static String piece(String s, int piece1); static String piece(String s, int piece1, int piece2); static String piece(String s, String delimiter); static String piece(String s, String delimiter, int piece1); static String piece(String s, String delimiter, int piece1, int piece2); static String translate(String s, String identifier, String associator); static long crc16(String s); static String crc16Hex(String s); static Object splitLargeStringIfNecessary(String s); static Object splitLargeStringIfNecessary(String s, int length); static String nameCase(String s); }
VistaStringUtils { public static Object splitLargeStringIfNecessary(String s) { return splitLargeStringIfNecessary(s, 245); }  static String piece(String s); static String piece(String s, int piece1); static String piece(String s, int piece1, int piece2); static String piece(String s, String delimiter); static String piece(String s, String delimiter, int piece1); static String piece(String s, String delimiter, int piece1, int piece2); static String translate(String s, String identifier, String associator); static long crc16(String s); static String crc16Hex(String s); static Object splitLargeStringIfNecessary(String s); static Object splitLargeStringIfNecessary(String s, int length); static String nameCase(String s); static final String U; }