org.tentackle.util
Class URLHelper

java.lang.Object
  extended by org.tentackle.util.URLHelper

public class URLHelper
extends Object

Helper methods for desktop file and directory operations, web and mail.

Author:
harald

Constructor Summary
URLHelper()
           
 
Method Summary
static void browseDirectory(String path)
          Browses a directory.
static void browseDirectory(String path, boolean createDir)
          Browses a directory.
static void mailTo(String recipient, String subject, String body)
          Sends a mail (and start eMail-Frontend).
static void openURL(String urlDesc)
          Opens a URL according to its filetype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLHelper

public URLHelper()
Method Detail

openURL

public static void openURL(String urlDesc)
                    throws IOException
Opens a URL according to its filetype.

Parameters:
urlDesc - the url
Throws:
IOException

browseDirectory

public static void browseDirectory(String path,
                                   boolean createDir)
                            throws IOException
Browses a directory.

Parameters:
path - the directory pathname
createDir - true if create directory if missing
Throws:
IOException

browseDirectory

public static void browseDirectory(String path)
                            throws IOException
Browses a directory.

Parameters:
path - the directory pathname
Throws:
IOException

mailTo

public static void mailTo(String recipient,
                          String subject,
                          String body)
                   throws IOException,
                          URISyntaxException
Sends a mail (and start eMail-Frontend).

Parameters:
recipient - the recipoent
subject - the subject, null if none
body - the body, null if none
Throws:
IOException
URISyntaxException


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de