org.davesag.generica.util.harvester
Class DirectMediaHarvester
java.lang.Object
org.davesag.generica.util.harvester.AbstractMediaHarvester
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectMediaHarvester
public DirectMediaHarvester()
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.