gnu.text

Class URIPath

Implemented Interfaces:
Comparable
Known Direct Subclasses:
URLPath

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.

Field Summary

Fields inherited from class gnu.text.Path

defaultPath, userDirPath

Method Summary

static URIPath
coerceToURIPathOrNull(Object path)
int
compareTo(Object obj)
int
compareTo(URIPath path)
static String
encodeForUri(String str, char mode)
boolean
equals(Object obj)
boolean
exists()
String
getAuthority()
Path
getCanonical()
long
getContentLength()
String
getFragment()
String
getHost()
long
getLastModified()
String
getPath()
int
getPort()
String
getQuery()
String
getScheme()
String
getUserInfo()
int
hashCode()
boolean
isAbsolute()
static URIPath
makeURI(Object arg)
InputStream
openInputStream()
OutputStream
openOutputStream()
Path
resolve(String rstr)
String
toString()
URI
toURI()
String
toURIString()
URL
toURL()
static URIPath
valueOf(String uri)
static URIPath
valueOf(URI uri)

Methods inherited from class gnu.text.Path

coerceToPathOrNull, currentPath, exists, getAbsolute, getAuthority, getCanonical, getContentLength, getDirectory, getExtension, getFragment, getHost, getLast, getLastModified, getParent, getPath, getPort, getQuery, getScheme, getUserInfo, isAbsolute, isDirectory, openInputStream, openInputStream, openOutputStream, relativize, resolve, resolve, setCurrentPath, toURI, toURIString, toURL, toURL, uriSchemeLength, uriSchemeSpecified, valueOf

Method Details

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()
Overrides:
exists in interface Path

getAuthority

public String getAuthority()
Overrides:
getAuthority in interface Path

getCanonical

public Path getCanonical()
Overrides:
getCanonical in interface Path

getContentLength

public long getContentLength()
Overrides:
getContentLength in interface Path

getFragment

public String getFragment()
Overrides:
getFragment in interface Path

getHost

public String getHost()
Overrides:
getHost in interface Path

getLastModified

public long getLastModified()
Overrides:
getLastModified in interface Path

getPath

public String getPath()
Overrides:
getPath in interface Path

getPort

public int getPort()
Overrides:
getPort in interface Path

getQuery

public String getQuery()
Overrides:
getQuery in interface Path

getScheme

public String getScheme()
Overrides:
getScheme in interface Path

getUserInfo

public String getUserInfo()
Overrides:
getUserInfo in interface Path

hashCode

public int hashCode()

isAbsolute

public boolean isAbsolute()
Overrides:
isAbsolute in interface Path

makeURI

public static URIPath makeURI(Object arg)

openInputStream

public InputStream openInputStream()
            throws IOException
Overrides:
openInputStream in interface Path

openOutputStream

public OutputStream openOutputStream()
            throws IOException
Overrides:
openOutputStream in interface Path

resolve

public Path resolve(String rstr)
Overrides:
resolve in interface Path

toString

public String toString()

toURI

public URI toURI()
Overrides:
toURI in interface Path

toURIString

public String toURIString()
Overrides:
toURIString in interface Path

toURL

public URL toURL()
Overrides:
toURL in interface Path

valueOf

public static URIPath valueOf(String uri)

valueOf

public static URIPath valueOf(URI uri)