com.sun.xml.registry.client.browser
Class HyperLinker

java.lang.Object
  extended bycom.sun.xml.registry.client.browser.HyperLinker

public class HyperLinker
extends java.lang.Object


Constructor Summary
HyperLinker()
           
 
Method Summary
static boolean displayURL(java.lang.String url)
          Display a file in the system browser.
static boolean isWindowsPlatform()
          Try to determine whether this application is running under Windows or some other platform by examing the "os.name" property.
static void main(java.lang.String[] args)
          Simple example.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperLinker

public HyperLinker()
Method Detail

displayURL

public static boolean displayURL(java.lang.String url)
Display a file in the system browser. If you want to display a file, you must include the absolute path name.

Parameters:
url - the file's url (the url must start with either "http://" or * "file://").
Returns:
is true, if displaying was possible (at leas no error occures)

isWindowsPlatform

public static boolean isWindowsPlatform()
Try to determine whether this application is running under Windows or some other platform by examing the "os.name" property.

Returns:
true if this application is running under a Windows OS

main

public static void main(java.lang.String[] args)
Simple example. Opens the url to "http://www.javaworld.com"



Copyright © 2001-2004 OASIS. All Rights Reserved.