org.jpedal.examples.contentextractor
Class ContentExtractor
java.lang.Object
org.jpedal.examples.simpleviewer.SimpleViewer
org.jpedal.examples.contentextractor.ContentExtractor
public class ContentExtractor
- extends SimpleViewer
Example client application to extract text and image from any rectangular area
on page using JPedal (for example ad extraction)
(Assumes content is in single column)
Notes: currentGUI.getFrame() example uses some "unofficial" classes inside the library which may alter in function
|
Method Summary |
static void |
main(java.lang.String[] args)
main method to run the software |
void |
setupViewer()
setup the display and pop-up a viewer window |
void |
writeXML(java.lang.String xml,
java.lang.String target,
int id,
int currentPage)
write out a story to disk. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentExtractor
public ContentExtractor()
main
public static void main(java.lang.String[] args)
- main method to run the software
setupViewer
public void setupViewer()
- setup the display and pop-up a viewer window
- Overrides:
setupViewer in class SimpleViewer
writeXML
public void writeXML(java.lang.String xml,
java.lang.String target,
int id,
int currentPage)
throws java.lang.Exception
- write out a story to disk. Set textData to null if you are in automated
mode.
- Throws:
java.lang.Exception