com.sun.tools.xjc.reader
Class Util

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

public class Util
extends java.lang.Object


Constructor Summary
Util()
           
 
Method Summary
static java.lang.String escapeSpace(java.lang.String url)
           
static java.lang.Object getFileOrURL(java.lang.String fileOrURL)
          Parses the specified string either as an URL or as a File.
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.
 
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 java.lang.Object getFileOrURL(java.lang.String fileOrURL)
                                     throws java.io.IOException
Parses the specified string either as an URL or as a File.

Throws:
java.io.IOException - if the parameter is neither.

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.


escapeSpace

public static java.lang.String escapeSpace(java.lang.String url)