com.partnersoft.system
Class OSLib

java.lang.Object
  extended by com.partnersoft.system.OSLib

public class OSLib
extends java.lang.Object

Handy functions to start programs and applications in the operating system. Mostly this is a convenience wrapper around of these are just wrappers around java.awt.Desktop.

Copyright 2005-2007 Partner Software, Inc.

Version:
$Id: OSLib.java 2046 2009-08-25 05:28:53Z paul $
Author:
Paul Reavis

Constructor Summary
OSLib()
           
 
Method Summary
static void browse(java.io.File file)
          Open the default web browser pointing at the given file.
static void browse(java.lang.String url)
          Open the default web browser pointing at the given URL.
static void browse(java.net.URI uri)
          Open the default web browser pointing at the given URI.
static void browse(java.net.URL url)
          Open the default web browser pointing at the given URL.
static void browse(VfsFile file)
          Open the default web browser pointing at the given file.
static void copyToClipboard(VfsFile file)
           
static void edit(java.io.File file)
          Open the default editor for the given file.
static void edit(java.lang.String filename)
          Open the default editor for the given file.
static void mail()
          Open the default mail program.
static void mail(org.jdesktop.jdic.desktop.Message msg)
           
static void mail(java.lang.String url)
          Open the default mail program for the given destination URL.
static void mail(java.net.URI uri)
          Open the default mail program for the given destination URI.
static void mail(java.net.URL url)
          Open the default mail program for the given destination URL.
static void open(java.io.File file)
          Open the given file (same as double-clicking in most environments).
static void open(java.lang.String filename)
          Open the given file (same as double-clicking in most environments).
static void open(VfsFile file)
          Open the given file (same as double-clicking in most environments).
static void pasteFromClipboard(VfsFile file)
           
static void print(java.io.File file)
          Print the given file.
static void print(java.lang.String filename)
          Print the given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSLib

public OSLib()
Method Detail

browse

public static void browse(java.io.File file)
Open the default web browser pointing at the given file.


browse

public static void browse(VfsFile file)
Open the default web browser pointing at the given file.


browse

public static void browse(java.lang.String url)
Open the default web browser pointing at the given URL.


browse

public static void browse(java.net.URI uri)
Open the default web browser pointing at the given URI.


browse

public static void browse(java.net.URL url)
Open the default web browser pointing at the given URL.


edit

public static void edit(java.io.File file)
Open the default editor for the given file.


edit

public static void edit(java.lang.String filename)
Open the default editor for the given file.


mail

public static void mail()
Open the default mail program.


mail

public static void mail(java.lang.String url)
Open the default mail program for the given destination URL.


mail

public static void mail(java.net.URI uri)
Open the default mail program for the given destination URI.


mail

public static void mail(java.net.URL url)
Open the default mail program for the given destination URL.


open

public static void open(java.io.File file)
Open the given file (same as double-clicking in most environments).


open

public static void open(VfsFile file)
Open the given file (same as double-clicking in most environments).


mail

public static void mail(org.jdesktop.jdic.desktop.Message msg)

open

public static void open(java.lang.String filename)
Open the given file (same as double-clicking in most environments).


print

public static void print(java.io.File file)
Print the given file.


print

public static void print(java.lang.String filename)
Print the given file.


copyToClipboard

public static void copyToClipboard(VfsFile file)

pasteFromClipboard

public static void pasteFromClipboard(VfsFile file)