public class DelimiterSeparatedLine
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
DEFAULT_COLUMN_DELIMITER |
Constructor and Description |
---|
DelimiterSeparatedLine(java.lang.String line)
Constructs an new delimiter separated line with delimiter "|"
|
DelimiterSeparatedLine(java.lang.String line,
char delimiter)
Constructs an new delimiter separated line
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText(int columnNbr)
Returns the value of the column as specified by column nbr
|
java.lang.String[] |
toStringArray() |
public static final char DEFAULT_COLUMN_DELIMITER
public DelimiterSeparatedLine(java.lang.String line)
line
- the line to be separated in fieldspublic DelimiterSeparatedLine(java.lang.String line, char delimiter)
line
- the line to be separated in fieldsdelimiter
- the delimiter to usepublic java.lang.String getText(int columnNbr)
columnNbr
- the nbr of the column which value should be returnedpublic java.lang.String[] toStringArray()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de