com.sun.tools.xjc.reader
Class Util

java.lang.Object
  extended by com.sun.tools.xjc.reader.Util

public class Util
extends Object


Constructor Summary
Util()
           
 
Method Summary
static String escapeSpace(String url)
           
static Object getFileOrURL(String fileOrURL)
          Parses the specified string either as an URL or as a File.
static InputSource getInputSource(String fileOrURL)
          Gets an InputSource from a string, which contains either a file name or an URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getFileOrURL

public static Object getFileOrURL(String fileOrURL)
                           throws IOException
Parses the specified string either as an URL or as a File.

Throws:
IOException - if the parameter is neither.

getInputSource

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


escapeSpace

public static String escapeSpace(String url)