Class MapAsciiReader
java.lang.Object
net.simplace.core.io.AbstractDataReader
net.simplace.core.io.AbstractAsciiReader
net.simplace.core.io.MapAsciiReader
Reads a fixed-width ASCII file into a map: key
rowHead_columnName, value the string of the column.
The row head is the value of the head column, or the line number.-
Field Summary
Fields inherited from class AbstractAsciiReader
iDefaultDateFormat, iSeperator, iSourceFile, iTabLenFields inherited from class AbstractDataReader
iColumnsData, iConfigData, iObservable -
Constructor Summary
ConstructorsConstructorDescriptionMapAsciiReader(File aSourceFile, org.jdom2.Element aConfigData, String aTabLen, String aSeperator, String aDefaultDateFormat, FWObservable aObservable) -
Method Summary
Methods inherited from class AbstractAsciiReader
getStringParameter, getTitle, initColumnHeads, initTitle, readData, setTitleMethods inherited from class AbstractDataReader
getIntegerValue
-
Constructor Details
-
MapAsciiReader
public MapAsciiReader(File aSourceFile, org.jdom2.Element aConfigData, String aTabLen, String aSeperator, String aDefaultDateFormat, FWObservable aObservable) - Parameters:
aSourceFile- the ASCII fileaConfigData- the configuration element with one child per columnaTabLen- tab length as string, ornullto keep tabsaSeperator- column separatoraDefaultDateFormat- default date formataObservable- provides the parameters for the configuration values
-
-
Method Details
-
readMap
-
processLineOfFile
Puts the values of one line into the result map.- Specified by:
processLineOfFilein classAbstractAsciiReader- Parameters:
aOrientation- not usedaLine- the lineaRowIdx- line number (1-based)- Throws:
Exception- if the line cannot be processed
-