org.davesag.generica.util.harvester
Class HTMLPageHarvester

java.lang.Object
  extended byorg.davesag.generica.util.harvester.AbstractMediaHarvester
      extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.davesag.generica.util.harvester.MediaHarvester
MediaHarvester.Factory
 
Field Summary
 
Fields inherited from class org.davesag.generica.util.harvester.AbstractMediaHarvester
thePath
 
Constructor Summary
HTMLPageHarvester()
           
 
Method Summary
 Media getMedia(String url)
          grabs a raw media file from the url provided.
 
Methods inherited from class org.davesag.generica.util.harvester.AbstractMediaHarvester
setBasePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLPageHarvester

public HTMLPageHarvester()
Method Detail

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.