public final class UriUtil
extends java.lang.Object
URI
.Modifier and Type | Method and Description |
---|---|
static java.net.URI |
createFileUri(java.lang.String file) |
static java.net.URI |
createZipUri(java.io.File file,
java.lang.String entry)
Create a URI to the entry within a ZIP file.
|
static java.net.URI |
createZipUri(java.lang.String file,
java.lang.String entry) |
static java.lang.String |
getFileExtension(java.net.URI uri)
Get the file extension from the URI path.
|
static java.lang.String |
getFileName(java.lang.String path) |
static java.lang.String |
getFileName(java.net.URI uri)
Get the file name from the URI path.
|
static java.lang.String |
getFileNameWithoutExtension(java.net.URI uri)
Get the file name without the extension from the URI path.
|
static java.lang.String |
getFilePath(java.net.URI uri) |
static java.lang.String |
getPath(java.lang.String path) |
static java.lang.String |
getZipEntryFilePath(java.net.URI uri)
Get the path to an entry in a ZIP URI.
|
static java.lang.String |
getZipEntryName(java.net.URI uri)
Get the name of a ZIP file entry from a ZIP URI.
|
static java.io.File |
getZipFile(java.net.URI uri)
Get the ZIP file from a ZIP URI.
|
static java.lang.String |
getZipFileName(java.net.URI uri) |
static java.lang.String |
getZipFilePath(java.net.URI uri) |
static java.lang.String |
removeExtension(java.lang.String path) |
public static java.net.URI createZipUri(java.io.File file, java.lang.String entry)
file
- The ZIP file.entry
- The ZIP entry.public static java.net.URI createZipUri(java.lang.String file, java.lang.String entry)
public static java.net.URI createFileUri(java.lang.String file)
public static java.io.File getZipFile(java.net.URI uri)
uri
- The URI.public static java.lang.String getZipFilePath(java.net.URI uri)
public static java.lang.String getZipFileName(java.net.URI uri)
public static java.lang.String getZipEntryName(java.net.URI uri)
uri
- The URI.public static java.lang.String getFileExtension(java.net.URI uri)
uri
- The URI.public static java.lang.String getFileName(java.net.URI uri)
uri
- The URI.public static java.lang.String getFileNameWithoutExtension(java.net.URI uri)
uri
- The URI.public static java.lang.String getZipEntryFilePath(java.net.URI uri)
uri
- The zip URIpublic static java.lang.String getFilePath(java.net.URI uri)
public static java.lang.String getFileName(java.lang.String path)
public static java.lang.String getPath(java.lang.String path)
public static java.lang.String removeExtension(java.lang.String path)