org.jopendocument.link
Class OOConnexion
java.lang.Object
org.jopendocument.link.OOConnexion
public abstract class OOConnexion
- extends Object
Connexion avec une instance d'OO
- Author:
- Administrateur
|
Field Summary |
protected static int |
PORT
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT
protected static final int PORT
- See Also:
- Constant Field Values
OOConnexion
public OOConnexion()
create
public static OOConnexion create()
throws IllegalStateException
- Return a connection to the default OpenOffice installation.
- Returns:
- a connection to the default OpenOffice or
null if none is found.
- Throws:
IllegalStateException - if an error occurs while searching.
create
public static OOConnexion create(OOInstallation ooInstall)
throws IllegalStateException
- Throws:
IllegalStateException
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
loadDocumentFromURLAsync
protected abstract Component loadDocumentFromURLAsync(String url,
boolean hidden)
loadDocument
public final Component loadDocument(File f,
boolean hidden)
throws IOException
- Load a document in OpenOffice.
- Parameters:
f - the file to load.hidden - true if no frame should be visible.
- Returns:
- the new component.
- Throws:
IOException - if an error occurs.
convertToUrl
protected abstract String convertToUrl(String path)
throws MalformedURLException
- Throws:
MalformedURLException
closeConnexion
public abstract void closeConnexion()
isClosed
public abstract boolean isClosed()
- Whether the bridge is closed.
- Returns:
true if closeConnexion() was called or OpenOffice is now longer
running.
Copyright © 2010 jOpenDocument All Rights Reserved.