Class ObservationFieldSplitter

java.lang.Object
org.aavso.tools.vstar.input.text.ObservationFieldSplitter

public class ObservationFieldSplitter extends Object
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

    Constructors
    Constructor
    Description
    ObservationFieldSplitter(com.csvreader.CsvReader lineReader, int minFields, int maxFields)
    Deprecated.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Return the required number of fields for the next line, appending with nulls if too few fields are present in the line.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public String[] getFields() throws IOException, ObservationValidationError
      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.