org.jopendocument.link
Class OOInstallation

java.lang.Object
  extended by org.jopendocument.link.OOInstallation

public class OOInstallation
extends java.lang.Object

This class finds out where OpenOffice.org is installed.

Author:
Sylvain CUAZ
See Also:
getInstance()

Method Summary
 java.util.List<java.io.File> getClasspath()
           
 java.io.File getExecutable()
           
static OOInstallation getInstance()
          Return the installation for this machine.
 java.util.List<java.net.URL> getURLs(java.util.Set<java.lang.String> jars)
           
static void main(java.lang.String[] args)
           
static void reset()
          Forget the current installation to pick up a change (e.g.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static OOInstallation getInstance()
                                  throws java.io.IOException
Return the installation for this machine.

Returns:
the installation for this machine, null if not installed.
Throws:
java.io.IOException - if an error occurs while searching.

reset

public static void reset()
Forget the current installation to pick up a change (e.g. updated version).


getExecutable

public final java.io.File getExecutable()

getClasspath

public final java.util.List<java.io.File> getClasspath()

getURLs

public final java.util.List<java.net.URL> getURLs(java.util.Set<java.lang.String> jars)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)