public class CSVFromPropertiesReader extends CSVReader
| Type | Property and Description |
|---|---|
protected de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty |
parseNext |
| Modifier and Type | Class and Description |
|---|---|
static class |
CSVFromPropertiesReader.CSVFromPropertiesReaderBuilder |
| Constructor and Description |
|---|
CSVFromPropertiesReader(String idAndNameRegexp,
Map<String,Integer> name2columns,
boolean caseInsentitiveAttributeNames,
int linesToBuffer,
String emptyCellValue,
Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Integer,String> |
addPropertyToCSVLine(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property) |
static CSVFromPropertiesReader.CSVFromPropertiesReaderBuilder |
builder(Reader reader) |
void |
close()
Close the reader.
|
void |
closeQuietly()
Close the reader quietly.
|
Map<Integer,String> |
getOrCreateCSVLineForID(String id) |
protected boolean |
isComplete(Map<Integer,String> csvLine) |
Integer |
lookupPosition(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property) |
protected Map<Integer,String> |
parseNextCSVLine() |
protected de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty |
parseNextProperty() |
protected String |
readNextPropertyLine() |
protected String |
readSrcLineFromStream()
Reads next line from stream.
|
protected void |
removeFromBuffer(String id) |
protected String |
toCsv(Map<Integer,String> csv) |
applyDecorators, clearAllCellDecorators, clearCellDecorator, finished, getCellDecorator, getCommentOut, getCurrentLineNumber, getDecoratorMap, getFieldSeparator, getLine, getSourceLine, getTextSeparator, hasCellDecorators, isCommentedOut, isFinished, isMultiLineMode, isReading, isShowComments, markFinished, mustSkip, notifyNextLine, parse, parse, parse, parse, parseLine, readNextLine, setCellDecorator, setCommentOut, setFieldSeparator, setLinesToSkip, setMaxBufferLines, setMultiLineMode, setShowComments, setTextSeparator, trimprotected de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty parseNextProperty
IOExceptionpublic static CSVFromPropertiesReader.CSVFromPropertiesReaderBuilder builder(Reader reader)
protected String readSrcLineFromStream()
CSVReadernull is returned and finished flag will be
set.readSrcLineFromStream in class CSVReadernullprotected Map<Integer,String> parseNextCSVLine() throws IOException
IOExceptionprotected de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty parseNextProperty()
throws IOException
IOExceptionprotected String readNextPropertyLine() throws IOException
IOExceptionprotected void removeFromBuffer(String id)
protected Map<Integer,String> addPropertyToCSVLine(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property)
public Integer lookupPosition(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property)
public void close()
throws IOException
CSVReaderclose in class CSVReaderIOException - throws if error occurredpublic void closeQuietly()
CSVReadercloseQuietly in class CSVReaderCopyright © 2017 SAP SE. All Rights Reserved.