Package org.aavso.tools.vstar.input.text
Class ObservationFieldSplitter
java.lang.Object
org.aavso.tools.vstar.input.text.ObservationFieldSplitter
Deprecated.
This class splits an observation line given a delimiter. If the result of the
split is less than a specified number, then the appropriate number of null
fields is added to the result.
-
Constructor Summary
ConstructorsConstructorDescriptionObservationFieldSplitter(com.csvreader.CsvReader lineReader, int minFields, int maxFields) Deprecated.Constructor. -
Method Summary
-
Constructor Details
-
ObservationFieldSplitter
public ObservationFieldSplitter(com.csvreader.CsvReader lineReader, int minFields, int maxFields) Deprecated.Constructor.- Parameters:
lineReader- The CsvReader that will be used to return fields, created with the appropriate delimiter and data source.minFields- The minimum allowed number of fields to be returned.maxFields- The maximum allowed number of fields to be returned.
-
-
Method Details
-
getFields
Deprecated.Return the required number of fields for the next line, appending with nulls if too few fields are present in the line.- Returns:
- The fields in the next line.
- Throws:
IOException- if there is an error reading the line.ObservationValidationError- If the number of fields does not fall into the required range.
-