org.qriterium.dogma
Class DogmaOpen

java.lang.Object
  extended by org.qriterium.dogma.DogmaOpen

public class DogmaOpen
extends java.lang.Object

Class that tries to open the given URI-strings in their default program. Creates a new Thread for the actual opening of the file, so that the effects of the Process.waitFor() to the main program are minimized. In windows OS it uses the run32dll to handle the file opening. Linux uses the "gnome-open" - command. Works currently in macintosh only for webpages.


Constructor Summary
DogmaOpen()
           
 
Method Summary
static void open(java.lang.String uri)
          Open the given uri.
static void open(java.lang.String type, java.lang.String uri)
          Open the given uri.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DogmaOpen

public DogmaOpen()
Method Detail

open

public static void open(java.lang.String uri)
Open the given uri.

Parameters:
uri - The uri to be opened.

open

public static void open(java.lang.String type,
                        java.lang.String uri)
Open the given uri.

Parameters:
type -
uri - The uri to be opened.