public class DesktopServiceImpl extends java.lang.Object implements DesktopService
Constructor and Description |
---|
DesktopServiceImpl()
Creates a DesktopServiceImpl and initializes the default
desktop to use for all desktop operations.
|
Modifier and Type | Method and Description |
---|---|
void |
browse(java.net.URI uri)
Invokes the default desktop browse method.
|
void |
edit(java.io.File file)
Invokes the default desktop edit method.
|
void |
open(java.io.File file)
Invokes the default desktop open method.
|
void |
print(java.io.File file)
Invokes the default desktop print method.
|
public DesktopServiceImpl()
public void browse(java.net.URI uri) throws java.lang.NullPointerException, java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.io.IOException, java.lang.SecurityException
browse
in interface DesktopService
uri
- the URI to be displayed in the user default browserjava.lang.NullPointerException
- if file is nulljava.lang.IllegalArgumentException
- if the specified file dosen't existjava.lang.UnsupportedOperationException
- if the current platform does not
support the Desktop.Action.OPEN actionjava.io.IOException
- if the specified file has no associated application
or the associated application fails to be launchedjava.lang.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 subprocessDesktopService.browse(URI)
public void edit(java.io.File file) throws java.lang.NullPointerException, java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.io.IOException, java.lang.SecurityException
edit
in interface DesktopService
file
- the file to open for editingjava.lang.NullPointerException
- if file is nulljava.lang.IllegalArgumentException
- if the specified file dosen't existjava.lang.UnsupportedOperationException
- if the current platform does not
support the Desktop.Action.OPEN actionjava.io.IOException
- if the specified file has no associated application
or the associated application fails to be launchedjava.lang.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 subprocessDesktopService.edit(File)
public void open(java.io.File file) throws java.lang.NullPointerException, java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.io.IOException, java.lang.SecurityException
open
in interface DesktopService
file
- the file to be openedjava.lang.NullPointerException
- if file is nulljava.lang.IllegalArgumentException
- if the specified file dosen't existjava.lang.UnsupportedOperationException
- if the current platform does not
support the Desktop.Action.OPEN actionjava.io.IOException
- if the specified file has no associated application
or the associated application fails to be launchedjava.lang.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 subprocessDesktopService.open(File)
public void print(java.io.File file) throws java.lang.NullPointerException, java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.io.IOException, java.lang.SecurityException
print
in interface DesktopService
file
- the file to be openedjava.lang.NullPointerException
- if file is nulljava.lang.IllegalArgumentException
- if the specified file dosen't existjava.lang.UnsupportedOperationException
- if the current platform does not
support the Desktop.Action.OPEN actionjava.io.IOException
- if the specified file has no associated application
or the associated application fails to be launchedjava.lang.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 subprocessDesktopService.print(File)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.