@Test public void testValidInput() { String input = "This is a \tString with some \n whitespace"; String expected = "This_is_a_String_with_some_whitespace"; assertEquals(expected, processor.execute(input, ANONYMOUS_CSVCONTEXT)); assertEquals(expected, processorChain.execute(input, ANONYMOUS_CSVCONTEXT)); }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); String result = regexPattern.matcher(value.toString()).replaceAll(replacement); return next.execute(result, context); }
StrReplace extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); String result = regexPattern.matcher(value.toString()).replaceAll(replacement); return next.execute(result, context); } }
StrReplace extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); String result = regexPattern.matcher(value.toString()).replaceAll(replacement); return next.execute(result, context); } StrReplace(final String regex, final String replacement);  StrReplace(final String regex, final String replacement, final StringCellProcessor next); }
StrReplace extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); String result = regexPattern.matcher(value.toString()).replaceAll(replacement); return next.execute(result, context); } StrReplace(final String regex, final String replacement);  StrReplace(final String regex, final String replacement, final StringCellProcessor next); Object execute(final Object value, final CsvContext context); }
StrReplace extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); String result = regexPattern.matcher(value.toString()).replaceAll(replacement); return next.execute(result, context); } StrReplace(final String regex, final String replacement);  StrReplace(final String regex, final String replacement, final StringCellProcessor next); Object execute(final Object value, final CsvContext context);  }