com.sun.msv.util
Class Util

java.lang.Object
  extended bycom.sun.msv.util.Util

public class Util
extends java.lang.Object

Collection of utility methods.

Author:
Kohsuke KAWAGUCHI

Constructor Summary
Util()
           
 
Method Summary
static org.xml.sax.InputSource getInputSource(java.lang.String fileOrURL)
          Gets an InputSource from a string, which contains either a file name or an URL.
static boolean isAbsoluteURI(java.lang.String uri)
          Checks if a given string is an absolute URI if it is an URI.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getInputSource

public static org.xml.sax.InputSource getInputSource(java.lang.String fileOrURL)
Gets an InputSource from a string, which contains either a file name or an URL.


isAbsoluteURI

public static boolean isAbsoluteURI(java.lang.String uri)
Checks if a given string is an absolute URI if it is an URI.

This method does not check whether it is an URI.

This implementation is based on this post.



Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.