A Path that wraps a URI.
The URI can be a java.net.URI, or a String, if compiled without URI support.
coerceToURIPathOrNull
public static URIPath coerceToURIPathOrNull(Object path)
compareTo
public int compareTo(Object obj)
compareTo
public int compareTo(URIPath path)
encodeForUri
public static String encodeForUri(String str,
char mode)
equals
public boolean equals(Object obj)
exists
public boolean exists()
- exists in interface Path
getHost
public String getHost()
- getHost in interface Path
getPath
public String getPath()
- getPath in interface Path
hashCode
public int hashCode()
makeURI
public static URIPath makeURI(Object arg)
openInputStream
public InputStream openInputStream()
throws IOException
- openInputStream in interface Path
openOutputStream
public OutputStream openOutputStream()
throws IOException
- openOutputStream in interface Path
toString
public String toString()
toURI
public URI toURI()
- toURI in interface Path
toURL
public URL toURL()
- toURL in interface Path
valueOf
public static URIPath valueOf(String uri)
valueOf
public static URIPath valueOf(URI uri)