Package gudusoft.gsqlparser.util.csv
Class CsvReader
Object
gudusoft.gsqlparser.util.csv.CsvReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCsvReader(InputStream inputStream, char delimiter, Charset charset) CsvReader(InputStream inputStream, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()get(int columnIndex) booleanintcharlongcharintgetHeader(int columnIndex) intString[]intcharbooleanbooleancharbooleanbooleanbooleanString[]booleanisQualified(int columnIndex) static voidstatic CsvReaderbooleanbooleanvoidsetCaptureRawRecord(boolean captureRawRecord) voidsetComment(char comment) voidsetDelimiter(char delimiter) voidsetEscapeMode(int escapeMode) voidsetHeaders(String[] hdrs) voidsetRecordDelimiter(char recordDelimiter) voidsetSafetySwitch(boolean safetySwitch) voidsetSkipEmptyRecords(boolean skipEmptyRecords) voidsetTextQualifier(char textQualifier) voidsetTrimWhitespace(boolean trimWhitespace) voidsetUseComments(boolean useComments) voidsetUseTextQualifier(boolean useTextQualifier) booleanskipLine()boolean
-
Field Details
-
ESCAPE_MODE_DOUBLED
- See Also:
-
ESCAPE_MODE_BACKSLASH
- See Also:
-
-
Constructor Details
-
CsvReader
- Throws:
FileNotFoundException
-
CsvReader
- Throws:
FileNotFoundException
-
CsvReader
- Throws:
FileNotFoundException
-
CsvReader
-
CsvReader
-
CsvReader
-
CsvReader
-
-
Method Details
-
getCaptureRawRecord
-
setCaptureRawRecord
-
getRawRecord
-
getTrimWhitespace
-
setTrimWhitespace
-
getDelimiter
-
setDelimiter
-
getRecordDelimiter
-
setRecordDelimiter
-
getTextQualifier
-
setTextQualifier
-
getUseTextQualifier
-
setUseTextQualifier
-
getComment
-
setComment
-
getUseComments
-
setUseComments
-
getEscapeMode
-
setEscapeMode
- Throws:
IllegalArgumentException
-
getSkipEmptyRecords
-
setSkipEmptyRecords
-
getSafetySwitch
-
setSafetySwitch
-
getColumnCount
-
getCurrentRecord
-
getHeaderCount
-
getHeaders
- Throws:
IOException
-
setHeaders
-
getValues
- Throws:
IOException
-
get
- Throws:
IOException
-
get
- Throws:
IOException
-
parse
-
readRecord
- Throws:
IOException
-
readHeaders
- Throws:
IOException
-
getHeader
- Throws:
IOException
-
isQualified
- Throws:
IOException
-
getIndex
- Throws:
IOException
-
skipRecord
- Throws:
IOException
-
skipLine
- Throws:
IOException
-
close
-
finalize
-
main
- Throws:
Exception
-