abbot.util
Class Launcher

java.lang.Object
  extended by abbot.util.Launcher

public class Launcher
extends Object

Mail and browser launcher which augments Runtime.exec methods. Provides for built-in email and web browser support.


Constructor Summary
Launcher()
           
 
Method Summary
static void mail(String user, String subject, String body)
          Format a message to the given user with the given subject and message body.
static void mail(String user, String subject, String body, String cc)
          Format a message to the given user with the given subject and message body, including a CC list.
static void mail(String user, String subject, String body, String cc, String bcc)
          Format a message to the given user with the given subject and message body, including CC and BCC lists.
static void open(String target)
          Open the given target URL in the platform's browser.
static void open(String command, String target)
          Use the given command/program to open the given target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Launcher

public Launcher()
Method Detail

mail

public static void mail(String user,
                        String subject,
                        String body)
                 throws IOException
Format a message to the given user with the given subject and message body.

Throws:
IOException

mail

public static void mail(String user,
                        String subject,
                        String body,
                        String cc)
                 throws IOException
Format a message to the given user with the given subject and message body, including a CC list.

Throws:
IOException

mail

public static void mail(String user,
                        String subject,
                        String body,
                        String cc,
                        String bcc)
                 throws IOException
Format a message to the given user with the given subject and message body, including CC and BCC lists.

Throws:
IOException

open

public static void open(String target)
                 throws IOException
Open the given target URL in the platform's browser.

Throws:
IOException

open

public static void open(String command,
                        String target)
                 throws IOException
Use the given command/program to open the given target.

Throws:
IOException


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge