Package com.sun.tools.xjc.reader
Class Util
- java.lang.Object
-
- com.sun.tools.xjc.reader.Util
-
public class Util extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
escapeSpace(java.lang.String url)
static java.lang.Object
getFileOrURL(java.lang.String fileOrURL)
Parses the specified string either as anURL
or as aFile
.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.
-
-
-
Method Detail
-
getFileOrURL
public static java.lang.Object getFileOrURL(java.lang.String fileOrURL) throws java.io.IOException
Parses the specified string either as anURL
or as aFile
.- 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)
-
-