Class HeaderDetection

java.lang.Object
app.babylon.table.io.HeaderDetection

public class HeaderDetection extends Object
Result of header detection, including the found headers and any selected subset.
  • Constructor Details

    • HeaderDetection

      public HeaderDetection(String[] headersFound)
      Creates a detection with the supplied headers and no synthetic flag.
    • HeaderDetection

      public HeaderDetection(String[] headersFound, boolean syntheticHeaders)
      Creates a detection with the supplied headers.
    • HeaderDetection

      public HeaderDetection(String[] headersFound, boolean syntheticHeaders, String[] selectedHeaders, int[] selectedPositions)
      Creates a full detection result.
  • Method Details

    • getHeadersFound

      public String[] getHeadersFound()
      Returns the headers found in the source.
    • getSelectedHeaders

      public String[] getSelectedHeaders()
      Returns the selected output headers.
    • getSelectedPositions

      public int[] getSelectedPositions()
      Returns the source positions of the selected headers.
    • isSyntheticHeaders

      public boolean isSyntheticHeaders()
      Returns whether the headers were synthesized rather than read from the source.