com.github.azbh111.utils.java.csv.CsvExporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-java Show documentation
Show all versions of utils-java Show documentation
com.github.azbh111:utils-java
The newest version!
package com.github.azbh111.utils.java.csv;
import com.github.azbh111.utils.java.charset.Charsets;
import com.github.azbh111.utils.java.datetime.DateTimeUtils;
import com.github.azbh111.utils.java.reflect.ReflectUtils;
import lombok.ToString;
import java.io.OutputStream;
import java.io.Writer;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
/**
* @author: zyp
* @date: 2020/12/4 18:24
*/
public class CsvExporter {
private final Map> cache = new ConcurrentHashMap<>();
private final Map> toStringMapping = new ConcurrentHashMap<>();
private final Map> formatMapping = new ConcurrentHashMap<>();
private final Function