@Test public void input_escape_sequence() { TabularTextFormat format = TabularTextFormat.builder() .withEscapeSequence(EscapeSequence.builder('\\') .addMapping('t', '\t') .build()) .build(); String[][] results = read(format, new String[] { "A\\t\t\\tB", "C\\t\t\\tD", }); assertThat(results, is(new String[][] { { "A\t", "\tB", }, { "C\t", "\tD", }, })); }
public static final Builder builder() { return new Builder(); }
TabularTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } }
TabularTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } TabularTextFormat(
            Charset charset,
            LineSeparator lineSeparator, char fieldSeparator,
            EscapeSequence escapeSequence,
            Supplier<? extends UnaryOperator<CharSequence>> inputTransformer,
            Supplier<? extends UnaryOperator<CharSequence>> outputTransformer); }
TabularTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } TabularTextFormat(
            Charset charset,
            LineSeparator lineSeparator, char fieldSeparator,
            EscapeSequence escapeSequence,
            Supplier<? extends UnaryOperator<CharSequence>> inputTransformer,
            Supplier<? extends UnaryOperator<CharSequence>> outputTransformer); static final Builder builder(); @Override TabularFieldReader open(InputStream input); @Override TabularFieldWriter open(OutputStream output); @Override TabularFieldReader open(Reader input); @Override TabularFieldWriter open(Writer output); }
TabularTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } TabularTextFormat(
            Charset charset,
            LineSeparator lineSeparator, char fieldSeparator,
            EscapeSequence escapeSequence,
            Supplier<? extends UnaryOperator<CharSequence>> inputTransformer,
            Supplier<? extends UnaryOperator<CharSequence>> outputTransformer); static final Builder builder(); @Override TabularFieldReader open(InputStream input); @Override TabularFieldWriter open(OutputStream output); @Override TabularFieldReader open(Reader input); @Override TabularFieldWriter open(Writer output); static final Charset DEFAULT_CHARSET; static final LineSeparator DEFAULT_LINE_SEPARATOR; static final char DEFAULT_FIELD_SEPARATOR; }