org.jopendocument.link
Class OOInstallation

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

public class OOInstallation
extends Object

This class finds out where OpenOffice.org is installed.

Author:
Sylvain CUAZ
See Also:
getInstance()

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

Method Detail

getInstance

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

Returns:
the installation for this machine, null if not installed.
Throws:
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 File getExecutable()

getClasspath

public final List<File> getClasspath()

getURLs

public final List<URL> getURLs(Set<String> jars)

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)


Copyright © 2010 jOpenDocument All Rights Reserved.