org.icepdf.ri.util
Class TextExtractionTask

java.lang.Object
  extended by org.icepdf.ri.util.TextExtractionTask

public class TextExtractionTask
extends java.lang.Object

This class is a utility for extracting text from a PDF document.

Since:
1.1

Constructor Summary
TextExtractionTask(org.icepdf.core.pobjects.Document document, java.io.File file, java.util.ResourceBundle messageBundle)
          Create a new instance of the TextExtraction object.
 
Method Summary
 int getCurrent()
          Find out how much has been done.
 int getLengthOfTask()
          Find out how much work needs to be done.
 java.lang.String getMessage()
          Returns the most recent dialog message, or null if there is no current dialog message.
 void go()
          Start the task, created a new SwingWorker for the text extraction process.
 boolean isDone()
          Find out if the task has completed.
 void stop()
          Stop the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextExtractionTask

public TextExtractionTask(org.icepdf.core.pobjects.Document document,
                          java.io.File file,
                          java.util.ResourceBundle messageBundle)
Create a new instance of the TextExtraction object.

Parameters:
document - document whose text will be extracted.
file - output file for extracted text.
Method Detail

go

public void go()
Start the task, created a new SwingWorker for the text extraction process.


getLengthOfTask

public int getLengthOfTask()
Find out how much work needs to be done.


getCurrent

public int getCurrent()
Find out how much has been done.


stop

public void stop()
Stop the task.


isDone

public boolean isDone()
Find out if the task has completed.


getMessage

public java.lang.String getMessage()
Returns the most recent dialog message, or null if there is no current dialog message.