gnu.text

Class URLPath

Implemented Interfaces:
Comparable

public class URLPath
extends URIPath

A Path that wraps a URL.

Field Summary

Fields inherited from class gnu.text.Path

defaultPath, userDirPath

Method Summary

static URLPath
classResourcePath(Class clas)
long
getContentLength()
static int
getContentLength(URL url)
long
getLastModified()
static long
getLastModified(URL url)
boolean
isAbsolute()
InputStream
openInputStream()
static InputStream
openInputStream(URL url)
OutputStream
openOutputStream()
static OutputStream
openOutputStream(URL url)
Path
resolve(String relative)
URI
toURI()
static URI
toURI(URL url)
String
toURIString()
URL
toURL()
static URLPath
valueOf(URL url)

Methods inherited from class gnu.text.URIPath

coerceToURIPathOrNull, compareTo, compareTo, encodeForUri, equals, exists, getAuthority, getCanonical, getContentLength, getFragment, getHost, getLastModified, getPath, getPort, getQuery, getScheme, getUserInfo, hashCode, isAbsolute, makeURI, openInputStream, openOutputStream, resolve, toString, toURI, toURIString, toURL, valueOf, valueOf

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

classResourcePath

public static URLPath classResourcePath(Class clas)

getContentLength

public long getContentLength()
Overrides:
getContentLength in interface URIPath

getContentLength

public static int getContentLength(URL url)

getLastModified

public long getLastModified()
Overrides:
getLastModified in interface URIPath

getLastModified

public static long getLastModified(URL url)

isAbsolute

public boolean isAbsolute()
Overrides:
isAbsolute in interface URIPath

openInputStream

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

openInputStream

public static InputStream openInputStream(URL url)
            throws IOException

openOutputStream

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

openOutputStream

public static OutputStream openOutputStream(URL url)
            throws IOException

resolve

public Path resolve(String relative)
Overrides:
resolve in interface URIPath

toURI

public URI toURI()
Overrides:
toURI in interface URIPath

toURI

public static URI toURI(URL url)

toURIString

public String toURIString()
Overrides:
toURIString in interface URIPath

toURL

public URL toURL()
Overrides:
toURL in interface URIPath

valueOf

public static URLPath valueOf(URL url)