gnu.text

Class URIPath

public class URIPath extends Path implements Comparable

A Path that wraps a URI. The URI can be a java.net.URI, or a String, if compiled without URI support.
Method Summary
static URIPathcoerceToURIPathOrNull(Object path)
intcompareTo(URIPath path)
intcompareTo(Object obj)
static StringencodeForUri(String str, char mode)
booleanequals(Object obj)
booleanexists()
StringgetAuthority()
PathgetCanonical()
longgetContentLength()
StringgetFragment()
StringgetHost()
longgetLastModified()
StringgetPath()
intgetPort()
StringgetQuery()
StringgetScheme()
StringgetUserInfo()
inthashCode()
booleanisAbsolute()
static URIPathmakeURI(Object arg)
InputStreamopenInputStream()
OutputStreamopenOutputStream()
Pathresolve(String rstr)
StringtoString()
URItoURI()
StringtoURIString()
URLtoURL()
static URIPathvalueOf(URI uri)
static URIPathvalueOf(String uri)

Method Detail

coerceToURIPathOrNull

public static URIPath coerceToURIPathOrNull(Object path)

compareTo

public int compareTo(URIPath path)

compareTo

public int compareTo(Object obj)

encodeForUri

public static String encodeForUri(String str, char mode)

equals

public boolean equals(Object obj)

exists

public boolean exists()

getAuthority

public String getAuthority()

getCanonical

public Path getCanonical()

getContentLength

public long getContentLength()

getFragment

public String getFragment()

getHost

public String getHost()

getLastModified

public long getLastModified()

getPath

public String getPath()

getPort

public int getPort()

getQuery

public String getQuery()

getScheme

public String getScheme()

getUserInfo

public String getUserInfo()

hashCode

public int hashCode()

isAbsolute

public boolean isAbsolute()

makeURI

public static URIPath makeURI(Object arg)

openInputStream

public InputStream openInputStream()

openOutputStream

public OutputStream openOutputStream()

resolve

public Path resolve(String rstr)

toString

public String toString()

toURI

public URI toURI()

toURIString

public String toURIString()

toURL

public URL toURL()

valueOf

public static URIPath valueOf(URI uri)

valueOf

public static URIPath valueOf(String uri)