|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.internal.csv.writer.CSVConfigGuesser
public class CSVConfigGuesser
Tries to guess a config based on an InputStream.
Field Summary | |
---|---|
protected CSVConfig |
config
The found config |
Constructor Summary | |
---|---|
CSVConfigGuesser()
|
|
CSVConfigGuesser(InputStream in)
|
Method Summary | |
---|---|
protected void |
analyseLines(String[] lines)
|
protected InputStream |
getInputStream()
Allow override. |
CSVConfig |
guess()
Guess the config based on the first 10 (or less when less available) records of a CSV file. |
protected void |
guessFieldSeperator(String[] lines)
|
protected void |
guessFixedWidth(String[] lines)
Guess if this file is fixedwidth. |
protected void |
guessFixedWidthSeperator(String[] lines)
|
boolean |
hasFieldHeader()
|
void |
setHasFieldHeader(boolean hasFieldHeader)
Specify if the CSV file has a field header |
void |
setInputStream(InputStream in)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CSVConfig config
Constructor Detail |
---|
public CSVConfigGuesser()
public CSVConfigGuesser(InputStream in)
in
- the inputstream to guess fromMethod Detail |
---|
public void setInputStream(InputStream in)
protected InputStream getInputStream()
public CSVConfig guess()
protected void analyseLines(String[] lines)
protected void guessFixedWidth(String[] lines)
protected void guessFieldSeperator(String[] lines)
protected void guessFixedWidthSeperator(String[] lines)
public boolean hasFieldHeader()
public void setHasFieldHeader(boolean hasFieldHeader)
hasFieldHeader
- true or false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |