|
DataFile 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infomata.data.FixedWidthFormat
Data file format that uses fixed width to define each item per row of data.
Constructor Summary | |
FixedWidthFormat(int[] widths)
Creates a new FixedWidthFormat instance. |
Method Summary | |
java.lang.String |
format(DataRow row)
Formats the data contained in DataRow object
into a String according to pre-defined
widths. |
DataRow |
parseLine(java.lang.String line)
Parses a line of text containing data contained according to pre-defined character widths. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FixedWidthFormat(int[] widths)
FixedWidthFormat
instance.
widths
- list of width of each item contained in
data file in correct order.Method Detail |
public DataRow parseLine(java.lang.String line)
parseLine
in interface DataFormat
line
- String
object containing data.
DataRow
object containing data parsed
from line
.public java.lang.String format(DataRow row)
DataRow
object
into a String
according to pre-defined
widths.
format
in interface DataFormat
row
- DataRow
containing data to be written
to file.
|
DataFile 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |