@Test public void output_default_quote_style() { CsvTextFormat format = CsvTextFormat.builder() .withDefaultQuoteStyle(QuoteStyle.ALWAYS) .build(); String[] results = write(format, new String[][] { { "Hello!", }, }); assertThat(results, is(new String[] { "\"Hello!\"", })); }
public static final Builder builder() { return new Builder(); }
CsvTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } }
CsvTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } CsvTextFormat(
            Charset charset,
            LineSeparator lineSeparator, char fieldSeparator, char quoteCharacter,
            boolean allowLineFeedInQuote,
            QuoteStyle defaultQuoteStyle, QuoteStyle headerQuoteStyle,
            Supplier<? extends UnaryOperator<CharSequence>> inputTransformer,
            Supplier<? extends UnaryOperator<CharSequence>> outputTransformer); }
CsvTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } CsvTextFormat(
            Charset charset,
            LineSeparator lineSeparator, char fieldSeparator, char quoteCharacter,
            boolean allowLineFeedInQuote,
            QuoteStyle defaultQuoteStyle, QuoteStyle headerQuoteStyle,
            Supplier<? extends UnaryOperator<CharSequence>> inputTransformer,
            Supplier<? extends UnaryOperator<CharSequence>> outputTransformer); static final Builder builder(); @Override CsvFieldReader open(InputStream input); @Override CsvFieldWriter open(OutputStream output); @Override CsvFieldReader open(Reader input); @Override CsvFieldWriter open(Writer output); }
CsvTextFormat implements TextFormat { public static final Builder builder() { return new Builder(); } CsvTextFormat(
            Charset charset,
            LineSeparator lineSeparator, char fieldSeparator, char quoteCharacter,
            boolean allowLineFeedInQuote,
            QuoteStyle defaultQuoteStyle, QuoteStyle headerQuoteStyle,
            Supplier<? extends UnaryOperator<CharSequence>> inputTransformer,
            Supplier<? extends UnaryOperator<CharSequence>> outputTransformer); static final Builder builder(); @Override CsvFieldReader open(InputStream input); @Override CsvFieldWriter open(OutputStream output); @Override CsvFieldReader open(Reader input); @Override CsvFieldWriter open(Writer output); static final Charset DEFAULT_CHARSET; static final LineSeparator DEFAULT_LINE_SEPARATOR; static final char DEFAULT_FIELD_SEPARATOR; static final char DEFAULT_QUOTE_CHARACTER; static final boolean DEFAULT_ALLOW_LINE_FEED_IN_FIELD; static final QuoteStyle DEFAULT_QUOTE_STYLE; }