gnu.text
Class URLPath
java.lang.Object
gnu.text.Path
gnu.text.URIPath
gnu.text.URLPath
- All Implemented Interfaces:
- java.lang.Comparable<URIPath>
public class URLPath
- extends URIPath
A Path that wraps a URL.
Methods inherited from class gnu.text.URIPath |
coerceToURIPathOrNull, compareTo, encodeForUri, equals, exists, getAuthority, getCanonical, getFragment, getHost, getPath, getPort, getQuery, getScheme, getUserInfo, hashCode, makeURI, toString, valueOf, valueOf |
Methods inherited from class gnu.text.Path |
coerceToPathOrNull, currentPath, delete, getAbsolute, getCharContent, getDirectory, getExtension, getLast, getName, getParent, isDirectory, openInputStream, openReader, openWriter, relativize, resolve, setCurrentPath, toURI, toURL, uriSchemeLength, uriSchemeSpecified, valueOf |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
valueOf
public static URLPath valueOf(java.net.URL url)
isAbsolute
public boolean isAbsolute()
- Overrides:
isAbsolute
in class URIPath
getLastModified
public long getLastModified()
- Overrides:
getLastModified
in class URIPath
getLastModified
public static long getLastModified(java.net.URL url)
getContentLength
public long getContentLength()
- Overrides:
getContentLength
in class URIPath
getContentLength
public static int getContentLength(java.net.URL url)
toURL
public java.net.URL toURL()
- Overrides:
toURL
in class URIPath
toUri
public static java.net.URI toUri(java.net.URL url)
toUri
public java.net.URI toUri()
- Overrides:
toUri
in class URIPath
toURIString
public java.lang.String toURIString()
- Overrides:
toURIString
in class URIPath
resolve
public Path resolve(java.lang.String relative)
- Overrides:
resolve
in class URIPath
openInputStream
public static java.io.InputStream openInputStream(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
openInputStream
public java.io.InputStream openInputStream()
throws java.io.IOException
- Overrides:
openInputStream
in class URIPath
- Throws:
java.io.IOException
openOutputStream
public static java.io.OutputStream openOutputStream(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
openOutputStream
public java.io.OutputStream openOutputStream()
throws java.io.IOException
- Overrides:
openOutputStream
in class URIPath
- Throws:
java.io.IOException
classResourcePath
public static URLPath classResourcePath(java.lang.Class clas)