com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class CellsSheetInfo



  • public final class CellsSheetInfo
    extends Object

    Provides the information of a sheet.

    • Method Detail

      • getColumnNames

        public List<String> getColumnNames()

        Gets a collection of the columns' names.

        Returns:
        A collection of the columns' names.
      • getIndex

        public int getIndex()

        Gets a index of the sheet.

        Returns:
        The index of the sheet.
      • getName

        public String getName()

        Gets a name of the sheet.

        Returns:
        A string that represents the name of the sheet.
      • getRowCount

        public int getRowCount()

        Gets a total number of the rows.

        Returns:
        A total number of the rows.
      • extractSheetHeader

        public String extractSheetHeader()

        Extracts the name of the sheet.

        Returns:
        A string that contains the name of the sheet.
      • extractSheet

        public String extractSheet(String... columns)

        Extracts all characters from the sheet and returns the data as a string.

        Parameters:
        columns - A collection of the columns' names to read.
        Returns:
        A string that contains all characters from the sheet, or null if all characters have been extracted.
      • extractRow

        public String extractRow(int rowIndex,
                        String... columns)

        Extracts all characters from the row with the rowIndex and returns the data as a string.

        Parameters:
        rowIndex - The index of the row.
        columns - A collection of the columns' names to read.
        Returns:
        A string that contains all characters from the row, or null if all characters have been extracted.