public abstract class SlidesTextExtractorBase extends TextExtractor
Provides the base class for text extractors for presentations.
Modifier | Constructor and Description |
---|---|
protected |
SlidesTextExtractorBase(InputStream stream,
LoadOptions loadOptions)
Initializes a new instance of the
SlidesTextExtractorBase class. |
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing)
Releases the unmanaged resources used by the extractor.
|
String |
extractSlide(int slideIndex)
Extracts all characters from the slide with
slideIndex and returns the data as a string. |
int |
getSlideCount()
Gets a total count of the slides.
|
protected boolean |
nextSlide()
Moves the cursor to the next slide.
|
protected String |
prepareLine()
Returns a line of the text.
|
void |
reset()
Resets the current document.
|
checkDisposed, close, dispose, extractAll, extractLine, extractText, extractTextLine, getEncoding, getMediaType, getPassword, isDisposed, setEncoding, setMediaType
protected SlidesTextExtractorBase(InputStream stream, LoadOptions loadOptions)
Initializes a new instance of the SlidesTextExtractorBase
class.
stream
- A stream of the document.loadOptions
- The options of loading the file.public int getSlideCount()
Gets a total count of the slides.
public String extractSlide(int slideIndex)
Extracts all characters from the slide with slideIndex
and returns the data as a string.
slideIndex
- The index of the slide.public void reset()
Resets the current document.
ExtractLine
method will return the first line of the document.
reset
in class TextExtractor
protected boolean nextSlide()
Moves the cursor to the next slide.
protected void dispose(boolean disposing)
Releases the unmanaged resources used by the extractor.
dispose
in class TextExtractor
disposing
- A boolean true if invoked from Dispose; otherwise, false.protected String prepareLine()
Returns a line of the text.
prepareLine
in class TextExtractor
Copyright © 2019. All rights reserved.