@Test public void testEncodeWithNoColumnNumbers() { final SelectiveCsvEncoder encoder = new SelectiveCsvEncoder(); final CsvContext context = new CsvContext(1, 1, 1); assertEquals(UNESCAPED, encoder.encode(UNESCAPED, context, CsvPreference.STANDARD_PREFERENCE)); }
public String encode(final String input, final CsvContext context, final CsvPreference preference) { return columnNumbers.contains(context.getColumnNumber()) ? super.encode(input, context, preference) : input; }
SelectiveCsvEncoder extends DefaultCsvEncoder { public String encode(final String input, final CsvContext context, final CsvPreference preference) { return columnNumbers.contains(context.getColumnNumber()) ? super.encode(input, context, preference) : input; } }
SelectiveCsvEncoder extends DefaultCsvEncoder { public String encode(final String input, final CsvContext context, final CsvPreference preference) { return columnNumbers.contains(context.getColumnNumber()) ? super.encode(input, context, preference) : input; } SelectiveCsvEncoder(final int... columnsToEncode);  SelectiveCsvEncoder(final boolean[] columnsToEncode); }
SelectiveCsvEncoder extends DefaultCsvEncoder { public String encode(final String input, final CsvContext context, final CsvPreference preference) { return columnNumbers.contains(context.getColumnNumber()) ? super.encode(input, context, preference) : input; } SelectiveCsvEncoder(final int... columnsToEncode);  SelectiveCsvEncoder(final boolean[] columnsToEncode); String encode(final String input, final CsvContext context, final CsvPreference preference); }
SelectiveCsvEncoder extends DefaultCsvEncoder { public String encode(final String input, final CsvContext context, final CsvPreference preference) { return columnNumbers.contains(context.getColumnNumber()) ? super.encode(input, context, preference) : input; } SelectiveCsvEncoder(final int... columnsToEncode);  SelectiveCsvEncoder(final boolean[] columnsToEncode); String encode(final String input, final CsvContext context, final CsvPreference preference);  }