Package rma.util
Class FixedWidthFileReader
java.lang.Object
rma.util.FixedWidthFileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatString
(String... values) int[]
static void
String[]
Parses a fixed with line based on the specified column sizes and returns an array of the values in that line.void
setColumnSizes
(int[] sizes)
-
Constructor Details
-
FixedWidthFileReader
public FixedWidthFileReader() -
FixedWidthFileReader
public FixedWidthFileReader(int[] sizes)
-
-
Method Details
-
setColumnSizes
public void setColumnSizes(int[] sizes) -
getColumnSizes
public int[] getColumnSizes() -
parseLine
Parses a fixed with line based on the specified column sizes and returns an array of the values in that line.- Parameters:
line
- String- Returns:
- String[]
-
formatString
-
main
-