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(java.lang.String idAndNameRegexp,
java.util.Map<java.lang.String,java.lang.Integer> name2columns,
boolean caseInsentitiveAttributeNames,
int linesToBuffer,
java.lang.String emptyCellValue,
java.io.Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.Integer,java.lang.String> |
addPropertyToCSVLine(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property) |
static CSVFromPropertiesReader.CSVFromPropertiesReaderBuilder |
builder(java.io.Reader reader) |
void |
close()
Close the reader.
|
void |
closeQuietly()
Close the reader quietly.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getOrCreateCSVLineForID(java.lang.String id) |
protected boolean |
isComplete(java.util.Map<java.lang.Integer,java.lang.String> csvLine) |
java.lang.Integer |
lookupPosition(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property) |
protected java.util.Map<java.lang.Integer,java.lang.String> |
parseNextCSVLine() |
protected de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty |
parseNextProperty() |
protected java.lang.String |
readNextPropertyLine() |
protected java.lang.String |
readSrcLineFromStream()
Reads next line from stream.
|
protected void |
removeFromBuffer(java.lang.String id) |
protected java.lang.String |
toCsv(java.util.Map<java.lang.Integer,java.lang.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
java.io.IOExceptionpublic CSVFromPropertiesReader(java.lang.String idAndNameRegexp,
java.util.Map<java.lang.String,java.lang.Integer> name2columns,
boolean caseInsentitiveAttributeNames,
int linesToBuffer,
java.lang.String emptyCellValue,
java.io.Reader reader)
public static CSVFromPropertiesReader.CSVFromPropertiesReaderBuilder builder(java.io.Reader reader)
protected java.lang.String readSrcLineFromStream()
CSVReadernull is returned and finished flag will be
set.readSrcLineFromStream in class CSVReadernullprotected java.lang.String toCsv(java.util.Map<java.lang.Integer,java.lang.String> csv)
protected java.util.Map<java.lang.Integer,java.lang.String> parseNextCSVLine()
throws java.io.IOException
java.io.IOExceptionprotected boolean isComplete(java.util.Map<java.lang.Integer,java.lang.String> csvLine)
protected de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty parseNextProperty()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String readNextPropertyLine()
throws java.io.IOException
java.io.IOExceptionprotected void removeFromBuffer(java.lang.String id)
protected java.util.Map<java.lang.Integer,java.lang.String> addPropertyToCSVLine(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property)
public java.lang.Integer lookupPosition(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property)
public java.util.Map<java.lang.Integer,java.lang.String> getOrCreateCSVLineForID(java.lang.String id)
public void close()
throws java.io.IOException
CSVReaderpublic void closeQuietly()
CSVReadercloseQuietly in class CSVReaderCopyright © 2018 SAP SE. All Rights Reserved.