com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class SlidesTextExtractorBase

    • Constructor Detail

      • SlidesTextExtractorBase

        protected SlidesTextExtractorBase(InputStream stream,
                               LoadOptions loadOptions)

        Initializes a new instance of the SlidesTextExtractorBase class.

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

      • getSlideCount

        public int getSlideCount()

        Gets a total count of the slides.

        Returns:
        A total count of the slides.
      • extractSlide

        public String extractSlide(int slideIndex)

        Extracts all characters from the slide with slideIndex and returns the data as a string.

        Parameters:
        slideIndex - The index of the slide.
        Returns:
        A string that contains all characters from the slide, or null if all characters have been extracted.
      • 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
      • nextSlide

        protected boolean nextSlide()

        Moves the cursor to the next slide.

        Returns:
        true if isn't reached the end of the presentation; otherwise, false.
      • 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.
      • 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.