Package org.apache.any23.extractor.csv
Class CSVReaderBuilder
- java.lang.Object
- 
- org.apache.any23.extractor.csv.CSVReaderBuilder
 
- 
 public class CSVReaderBuilder extends Object This class is responsible to build a reader first guessing the configuration from the file it self and then, if not successful, from theDefaultConfiguration.- Author:
- Davide Palmisano ( dpalmisano@gmail.com ), Michele Mostarda ( michele.mostarda@gmail.com )
 
- 
- 
Constructor SummaryConstructors Constructor Description CSVReaderBuilder()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.csv.CSVParserbuild(InputStream is)Builds a notnullCSVParserguessing from the provided CSV file.static booleanisCSV(InputStream is)Checks whether the given input stream is a CSV or not.
 
- 
- 
- 
Method Detail- 
buildpublic static org.apache.commons.csv.CSVParser build(InputStream is) throws IOException Builds a notnullCSVParserguessing from the provided CSV file.- Parameters:
- is-- InputStreamof the CSV file where guess the configuration.
- Returns:
- a CSVParser
- Throws:
- IOException- if there is an error building the parser
 
 - 
isCSVpublic static boolean isCSV(InputStream is) throws IOException Checks whether the given input stream is a CSV or not.- Parameters:
- is- input stream to be verified.
- Returns:
- trueif the given- isinput stream contains a CSV content.- falseotherwise.
- Throws:
- IOException- if there is an error processing the input stream
 
 
- 
 
-