Package xal.tools
Class URLUtil
java.lang.Object
xal.tools.URLUtil
URLUtil is a convenience class of static methods that allow the user to
convert between file path and URL specifications.
- Author:
- tap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Exception for bad file path specification.static class
Exception for bad file path specification. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
filePathForUrl
(URL url) Convert a URL to a file pathstatic String
filePathForUrlSpec
(String urlSpec) Convert a URL specification to a file pathstatic String
urlSpecForFile
(File file) Convert a file to a URL specificationstatic String
urlSpecForFilePath
(String filePath) Convert a file path to a URL specification
-
Constructor Details
-
URLUtil
protected URLUtil()Creates new URLUtil
-
-
Method Details
-
urlSpecForFile
Convert a file to a URL specification- Throws:
URLUtil.FilePathException
-
urlSpecForFilePath
Convert a file path to a URL specification- Throws:
URLUtil.FilePathException
-
filePathForUrlSpec
Convert a URL specification to a file path- Throws:
URLUtil.UrlSpecException
-
filePathForUrl
Convert a URL to a file path
-