org.davesag.generica.util.harvester
Class HTMLPageHarvester
java.lang.Object
org.davesag.generica.util.harvester.AbstractMediaHarvester
org.davesag.generica.util.harvester.HTMLPageHarvester
- All Implemented Interfaces:
- MediaHarvester
- public class HTMLPageHarvester
- extends AbstractMediaHarvester
The HTMLPageHarvester loads an Image from the URL provided and saves it to
disk. It then returns a populated Media object.
- Since:
- Visuality Lite 1.0.0
- Version:
- CVS Revision $Id: HTMLPageHarvester.java,v 1.3 2004/03/30 13:00:43 davesag Exp $
- Author:
- Dave Sag
http://www.davesag.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLPageHarvester
public HTMLPageHarvester()
getMedia
public Media getMedia(String url)
throws MalformedURLException
- grabs a raw media file from the url provided.
- Parameters:
url - the url of the page
- Returns:
- the populated media object
- Throws:
MalformedURLException - if the url was malformed.
Dave Sag Generica API version 0.5.9 - (prerelease) Copyright © 2003 - 2004 Dave Sag.