public class CSVFactory extends Object
Constructor and Description |
---|
CSVFactory(File file)
constructor
|
CSVFactory(File file,
String sep)
constructor
|
CSVFactory(InputStream csvStream)
constructor
|
CSVFactory(InputStream csvStream,
String sep)
constructor
|
CSVFactory(InputStream csvStream,
String sep,
Charset charset) |
CSVFactory(String[][] newArray) |
CSVFactory(String separator,
InputStream csvStream)
constructor
|
public CSVFactory(String separator, InputStream csvStream) throws IOException
separator
- separator between colIOException
public CSVFactory(InputStream csvStream) throws IOException
separator
- separator between colIOException
public CSVFactory(File file) throws IOException
separator
- separator between colIOException
public CSVFactory(File file, String sep) throws IOException
separator
- separator between colIOException
public CSVFactory(InputStream csvStream, String sep) throws IOException
separator
- separator between colIOException
public CSVFactory(InputStream csvStream, String sep, Charset charset) throws IOException
IOException
public CSVFactory(String[][] newArray)
public String[][] getArray()
public void exportCSV(OutputStream outStream)
public void exportCSV(OutputStream outStream, String separator)
public void exportRowCSV(OutputStream outStream, String[] row)
public void exportRowCSV(OutputStream outStream, Collection<String> row)
public static void exportRowCSV(OutputStream outStream, String separator, String[] row)
public void appendRow(String[] row)
public static final String exportLine(Collection<String> data, String separator)
public void exportRowCSV(OutputStream outStream, String separator, Collection<String> row)
public static String searchCSVSep(String csvContent) throws IOException
IOException
public static String searchCSVSep(File csvFile) throws IOException
IOException
public String[] readHeads(File file) throws IOException
IOException
public String[] readHeads(InputStream in) throws IOException
IOException
public static List<Map<String,String>> loadContentAsMap(File file) throws IOException
IOException
public static List<String> loadTitle(File file) throws IOException
IOException
public static List<String> loadTitle(InputStream in) throws IOException
IOException
public static List<Map<String,String>> loadContentAsMap(InputStream in) throws IOException
IOException
public static void storeContentAsMap(File file, List<Map<String,String>> content) throws IOException
IOException
public static void appendContentAsMap(File file, Map<String,String> content) throws IOException
IOException
public CSVFactory merge(CSVFactory externalFile)
public int size()
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.