org.freehep.jas.services
Interface URLHandler


public interface URLHandler

An interface to be implemented by services which can open URLs.

Version:
$Id: URLHandler.java 13876 2011-09-20 00:52:21Z tonyj $
Author:
tonyj

Method Summary
 boolean accept(URL url)
          Returns true if this url handler is able to open the url
 void openURL(URL url)
          Opens a given url.
 

Method Detail

accept

boolean accept(URL url)
               throws IOException
Returns true if this url handler is able to open the url

Parameters:
file - The file to test
Returns:
true if file can be opened.
Throws:
IOException

openURL

void openURL(URL url)
             throws IOException
Opens a given url.

Parameters:
url - The URL to open
Throws:
IOException


Copyright © 2013. All Rights Reserved.