org.davesag.generica.util.harvester
Class DirectMediaHarvester

java.lang.Object
  extended byorg.davesag.generica.util.harvester.AbstractMediaHarvester
      extended byorg.davesag.generica.util.harvester.DirectMediaHarvester
All Implemented Interfaces:
MediaHarvester

public class DirectMediaHarvester
extends AbstractMediaHarvester

The DirectMediaHarvester 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: DirectMediaHarvester.java,v 1.5 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
DirectMediaHarvester()
           
 
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

DirectMediaHarvester

public DirectMediaHarvester()
Method Detail

getMedia

public Media getMedia(String url)
               throws MalformedURLException
grabs a raw media file from the url provided.

Parameters:
url - the url to harvest from.
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.