private Serializer getSerializer() { CsvConfiguration config = new CsvConfiguration(); config.setFieldDelimiter(';'); config.setDefaultQuoteMode(QuoteMode.NEVER); //!!!! return CsvIOFactory.createFactory(config, MyCsvDto.class).createSerializer(); }
@Override public void close() throws IOException { emitter.close(); } }
@Override public void fill(FloatOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
private CsvConfiguration createConfiguration() { CsvConfiguration conf = new CsvConfiguration( CsvConfiguration.DEFAULT_CHARSET, headers, trueFormat, falseFormat, dateFormat, dateTimeFormat); return conf; }
@Override public void close() throws IOException { parser.close(); } }
/** * Creates a new instance. * @param status describes this exception * @param cause the original cause (nullable) * @throws IllegalArgumentException if some parameters were {@code null} */ public CsvFormatException(Status status, Throwable cause) { super(toMessage(status), cause); this.status = status; }
@Override String getPattern() { return next.getPattern(); }
@Override public void fill(ShortOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void close() throws IOException { parser.close(); } }
@Override public void close() throws IOException { emitter.close(); } }
@Override public void fill(DecimalOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void close() throws IOException { parser.close(); } }
@Override public void close() throws IOException { emitter.close(); } }
@Override public void fill(ByteOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void close() throws IOException { parser.close(); } }
@Override public void fill(DoubleOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(DateOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(IntOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(LongOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(DateTimeOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }