public class SimpleTextExtractionStrategy extends Object implements ITextExtractionStrategy
Constructor and Description |
---|
SimpleTextExtractionStrategy() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendTextChunk(CharSequence text)
Used to actually append text to the text results.
|
void |
eventOccurred(IEventData data, EventType type)
Called when some event occurs during parsing a content stream.
|
String |
getResultantText()
Returns the result so far.
|
Set<EventType> |
getSupportedEvents()
Provides the set of event types this listener supports.
|
public void eventOccurred(IEventData data, EventType type)
IEventListener
eventOccurred
in interface IEventListener
data
- Combines the data required for processing corresponding event type.
type
- Event type.
public Set<EventType> getSupportedEvents()
IEventListener
getSupportedEvents
in interface IEventListener
public String getResultantText()
getResultantText
in interface ITextExtractionStrategy
protected final void appendTextChunk(CharSequence text)
text
- the text to append to the text results accumulated so far
Copyright © 1998–2023 iText Group NV. All rights reserved.