Package de.hybris.platform.util
Class CSVFromPropertiesReader
java.lang.Object
de.hybris.platform.util.CSVReader
de.hybris.platform.util.CSVFromPropertiesReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertyToCSVLine(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property) voidclose()Close the reader.voidClose the reader quietly.protected booleanisComplete(Map<Integer, String> csvLine) lookupPosition(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property) protected de.hybris.platform.util.CSVFromPropertiesReader.ParsedPropertyprotected Stringprotected StringReads next line from stream.protected voidprotected StringMethods inherited from class de.hybris.platform.util.CSVReader
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, trim
-
Constructor Details
-
CSVFromPropertiesReader
-
-
Method Details
-
builder
-
readSrcLineFromStream
Description copied from class:CSVReaderReads next line from stream. If stream has reached end,nullis returned and finished flag will be set.- Overrides:
readSrcLineFromStreamin classCSVReader- Returns:
- next line from stream or
null
-
toCsv
-
parseNextCSVLine
- Throws:
IOException
-
isComplete
-
parseNextProperty
protected de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty parseNextProperty() throws IOException- Throws:
IOException
-
readNextPropertyLine
- Throws:
IOException
-
removeFromBuffer
-
addPropertyToCSVLine
-
lookupPosition
public Integer lookupPosition(de.hybris.platform.util.CSVFromPropertiesReader.ParsedProperty property) -
getOrCreateCSVLineForID
-
close
Description copied from class:CSVReaderClose the reader. Should be always called if parsing is finished.- Overrides:
closein classCSVReader- Throws:
IOException- throws if error occurred
-
closeQuietly
public void closeQuietly()Description copied from class:CSVReaderClose the reader quietly. The IOException will be catched and if the debug mode is enabled the exeption message is written to the log.- Overrides:
closeQuietlyin classCSVReader
-