Changeset 7706


Ignore:
Timestamp:
May 13, 2019, 8:38:14 AM (2 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2174: The "FlatFileParser?" should give information about Excel files

Added methods for accessing the 'XlsxToCsvUtil?' instances sed while parsing Excel files. This should be good enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.15-stable/src/core/net/sf/basedb/util/parser/FlatFileParser.java

    r7676 r7706  
    651651  {
    652652    return excelSheetName;
     653  }
     654 
     655  /**
     656    If the input stream that is being parsed is an Excel
     657    document, this method returns information about it.
     658    @return An XlsxToCsvUtil object or null if the stream is not an Excel document
     659    @since 3.15.1
     660  */
     661  public XlsxToCsvUtil getCurrentExcelWorkbook()
     662  {
     663    return excelWorkbook;
     664  }
     665 
     666  /**
     667    If the input stream that is being parsed is an Excel
     668    document, this method returns information about the current
     669    worksheet.
     670    @return An XlsxToCsvUtil.SheetInfo object or null if the stream is not an Excel document
     671    @since 3.15.1
     672  */
     673  public XlsxToCsvUtil.SheetInfo getCurrentSheet()
     674  {
     675    return excelSheet;
    653676  }
    654677 
Note: See TracChangeset for help on using the changeset viewer.