Package uk.ac.gda.core.tool
Class URLFactory
java.lang.Object
uk.ac.gda.core.tool.URLFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateFileUrl(URL root, String name, String fileExtension) Generates a file URL based on the given rootgenerateUrl(String path) With absolute pathgenerateUrl(URL root, String... paths) With path relative to rootstatic final boolean
-
Constructor Details
-
URLFactory
public URLFactory()
-
-
Method Details
-
generateFileUrl
public URL generateFileUrl(URL root, String name, String fileExtension) throws MalformedURLException Generates a file URL based on the given root- Throws:
MalformedURLException
-
generateUrl
With absolute path- Throws:
MalformedURLException
-
generateUrl
With path relative to root- Throws:
MalformedURLException
-
getParent
- Throws:
MalformedURLException
-
urlExists
-