Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.osdependent
Class DesktopServiceImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.osdependent.DesktopServiceImpl
All Implemented Interfaces:
DesktopService

public class DesktopServiceImpl
extends Object
implements DesktopService

Implementation of the DesktopService.

Author:
Yana Stamcheva

Constructor Summary
DesktopServiceImpl()
          Creates a DesktopServiceImpl and initializes the default desktop to use for all desktop operations.
 
Method Summary
 void browse(URI uri)
          Invokes the default desktop browse method.
 void edit(File file)
          Invokes the default desktop edit method.
 void open(File file)
          Invokes the default desktop open method.
 void print(File file)
          Invokes the default desktop print method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopServiceImpl

public DesktopServiceImpl()
Creates a DesktopServiceImpl and initializes the default desktop to use for all desktop operations.

Method Detail

browse

public void browse(URI uri)
            throws NullPointerException,
                   IllegalArgumentException,
                   UnsupportedOperationException,
                   IOException,
                   SecurityException
Invokes the default desktop browse method.

Specified by:
browse in interface DesktopService
Parameters:
uri - the URI to be displayed in the user default browser
Throws:
NullPointerException - if file is null
IllegalArgumentException - if the specified file dosen't exist
UnsupportedOperationException - if the current platform does not support the Desktop.Action.OPEN action
IOException - if the specified file has no associated application or the associated application fails to be launched
SecurityException - if a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the file, or it denies the AWTPermission("showWindowWithoutWarningBanner") permission, or the calling thread is not allowed to create a subprocess
See Also:
DesktopService.browse(URI)

edit

public void edit(File file)
          throws NullPointerException,
                 IllegalArgumentException,
                 UnsupportedOperationException,
                 IOException,
                 SecurityException
Invokes the default desktop edit method.

Specified by:
edit in interface DesktopService
Parameters:
file - the file to open for editing
Throws:
NullPointerException - if file is null
IllegalArgumentException - if the specified file dosen't exist
UnsupportedOperationException - if the current platform does not support the Desktop.Action.OPEN action
IOException - if the specified file has no associated application or the associated application fails to be launched
SecurityException - if a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the file, or it denies the AWTPermission("showWindowWithoutWarningBanner") permission, or the calling thread is not allowed to create a subprocess
See Also:
DesktopService.edit(File)

open

public void open(File file)
          throws NullPointerException,
                 IllegalArgumentException,
                 UnsupportedOperationException,
                 IOException,
                 SecurityException
Invokes the default desktop open method.

Specified by:
open in interface DesktopService
Parameters:
file - the file to be opened
Throws:
NullPointerException - if file is null
IllegalArgumentException - if the specified file dosen't exist
UnsupportedOperationException - if the current platform does not support the Desktop.Action.OPEN action
IOException - if the specified file has no associated application or the associated application fails to be launched
SecurityException - if a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the file, or it denies the AWTPermission("showWindowWithoutWarningBanner") permission, or the calling thread is not allowed to create a subprocess
See Also:
DesktopService.open(File)

print

public void print(File file)
           throws NullPointerException,
                  IllegalArgumentException,
                  UnsupportedOperationException,
                  IOException,
                  SecurityException
Invokes the default desktop print method.

Specified by:
print in interface DesktopService
Parameters:
file - the file to be opened
Throws:
NullPointerException - if file is null
IllegalArgumentException - if the specified file dosen't exist
UnsupportedOperationException - if the current platform does not support the Desktop.Action.OPEN action
IOException - if the specified file has no associated application or the associated application fails to be launched
SecurityException - if a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the file, or it denies the AWTPermission("showWindowWithoutWarningBanner") permission, or the calling thread is not allowed to create a subprocess
See Also:
DesktopService.print(File)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.