com.qiniu.datasource.InputSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qsuits Show documentation
Show all versions of qsuits Show documentation
qiniu-suits is a efficient tools for qiniu api implemented by java8.
package com.qiniu.datasource;
import com.qiniu.common.QiniuException;
import com.qiniu.convert.LineToMap;
import com.qiniu.interfaces.ILineProcess;
import com.qiniu.interfaces.ITypeConvert;
import com.qiniu.util.FileUtils;
import com.qiniu.util.HttpRespUtils;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Map;
public class InputSource {
private String parse;
private String separator;
private String addKeyPrefix;
private String rmKeyPrefix;
private Map indexMap;
private boolean isQupload;
public InputSource(String parse, String separator, String addKeyPrefix, String rmKeyPrefix,
Map indexMap) {
this.parse = parse;
this.separator = separator;
this.addKeyPrefix = addKeyPrefix;
this.rmKeyPrefix = rmKeyPrefix;
this.indexMap = indexMap;
}
public void export(InputStream inputStream, ILineProcess