TableDataUtils { public static String normalizeColumn(String column) { if (column == null) { return "null"; } return column.replace("\t", " ").replace("\r\n", " ").replace("\n", " "); }  static String normalizeColumn(String column); static String normalizeColumn(Object obj); static List<String> normalizeColumns(List<Object> columns); static List<String> normalizeColumns(Object[] columns);  }
@Test public void testColumn() { assertEquals("hello world", TableDataUtils.normalizeColumn("hello\tworld")); assertEquals("hello world", TableDataUtils.normalizeColumn("hello\nworld")); assertEquals("hello world", TableDataUtils.normalizeColumn("hello\r\nworld")); assertEquals("hello world", TableDataUtils.normalizeColumn("hello\t\nworld")); assertEquals("null", TableDataUtils.normalizeColumn(null)); }