Class UriUtil
java.lang.Object
org.openjump.util.UriUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic URIcreateFileUri(String file) static URIcreateZipUri(File file, String entry) Create a URI to the entry within a ZIP file.static URIcreateZipUri(String file, String entry) static StringgetFileExtension(URI uri) Get the file extension from the URI path.static StringgetFileName(String path) static StringgetFileName(URI uri) Get the file name from the URI path.static StringGet the file name without the extension from the URI path.static StringgetFilePath(URI uri) getParameters(URI uri) static Stringstatic StringgetZipEntryFilePath(URI uri) Get the path to an entry in a ZIP URI.static StringgetZipEntryName(URI uri) Get the name of a ZIP file entry from a ZIP URI.static FilegetZipFile(URI uri) Get the ZIP file from a ZIP URI.static StringgetZipFileName(URI uri) static StringgetZipFilePath(URI uri) static booleanstatic StringremoveExtension(String path) static StringurlAddCredentials(String url, String user, String pass) static StringurlAddUserInfo(String url, String userinfo) userinfo is the prepared urlencoded string before the @ eg. user:passstatic Stringstatic Stringstatic StringurlGetHost(String url) static StringurlGetPassword(String url) static StringurlGetPath(String url) static StringurlGetPort(String url) static StringurlGetUser(String url) static StringurlGetUserInfo(String url) userinfo is the prepared urlencoded string before the @ eg. user:passstatic StringurlMakeAppendSafe(String url) Make sure the url string ends with '?'static StringurlStripAuth(String url) static StringurlStripPassword(String url)
-
Method Details
-
createZipUri
-
createZipUri
-
createFileUri
-
getZipFile
-
getZipFilePath
-
getZipFileName
-
getZipEntryName
-
getFileExtension
-
getFileName
-
getFileNameWithoutExtension
-
getZipEntryFilePath
-
getFilePath
-
getFileName
-
getPath
-
removeExtension
-
urlEncode
-
urlDecode
-
isURL
-
urlStripAuth
-
urlGetUser
-
urlGetPassword
-
urlGetUserInfo
-
urlGetHost
-
urlGetPort
-
urlGetPath
-
urlStripPassword
-
urlAddCredentials
-
urlMakeAppendSafe
-
urlAddUserInfo
-
getParameters
-