package com.lowagie.text.html.simpleparser;

import java.io.IOException;
import java.net.MalformedURLException;

import com.lowagie.text.*;

/**
 * get an image from a url
 */
public interface ImageProvider {
    /**
     * get an image from an url
     * @param src the src attribute on the image
     * @return the Image or null
     * @throws BadElementException
     * @throws MalformedURLException
     * @throws IOException
     */
    Image getImage(String src) throws BadElementException, MalformedURLException, IOException;
}
