com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class CellsTextExtractorBase

    • Constructor Detail

      • CellsTextExtractorBase

        protected CellsTextExtractorBase(InputStream stream,
                              LoadOptions loadOptions)

        Initializes a new instance of the CellsTextExtractorBase class.

        Parameters:
        stream - The stream of the document.
        loadOptions - The options of loading the file.
    • Method Detail

      • getSheetCount

        public int getSheetCount()

        Gets a total count of the sheets.

        Returns:
        A total count of the sheets.
      • setSheetCount

        protected void setSheetCount(int value)

        Sets a total count of the sheets.

        Parameters:
        value - A total count of the sheets.
      • extractSheet

        public String extractSheet(int sheetIndex)

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

        Parameters:
        sheetIndex - The index of the sheet.
        Returns:
        A string that contains all characters from the sheet, or null if all characters have been extracted.
      • getSheetInfo

        public CellsSheetInfo getSheetInfo(int sheetIndex)

        Returns an information of the sheet.

        Parameters:
        sheetIndex - The index of the sheet.
        Returns:
        An instance of the CellsSheetInfo class.
      • reset

        public void reset()

        Resets the current document.


        Resets the cursor's position. ExtractLine method will return the first line of the document.

        Overrides:
        reset in class TextExtractor
      • dispose

        protected void dispose(boolean disposing)

        Releases the unmanaged resources used by the extractor.

        Overrides:
        dispose in class TextExtractor
        Parameters:
        disposing - A boolean true if invoked from Dispose; otherwise, false.
      • extractTextLine

        protected String extractTextLine()

        Extracts a line of characters from the text extractor and returns the data as a string.

        Overrides:
        extractTextLine in class TextExtractor
        Returns:
        The next line from the extractor, or null if all characters have been extracted.
      • extractText

        protected String extractText()

        Extracts all characters from the current position to the end of the text extractor and returns them as one string.

        Overrides:
        extractText in class TextExtractor
        Returns:
        A string that contains all characters from the current position to the end of the text extractor.
      • prepareLine

        protected String prepareLine()

        Returns a line of the text.

        Specified by:
        prepareLine in class TextExtractor
        Returns:
        A string that represents a line of the text, or null if all characters have been read.