gnu.text
Class URLPath

java.lang.Object
  extended by gnu.text.Path
      extended by gnu.text.URIPath
          extended by gnu.text.URLPath
All Implemented Interfaces:
java.lang.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(java.lang.Class clas)
           
 long getContentLength()
           
static int getContentLength(java.net.URL url)
           
 long getLastModified()
           
static long getLastModified(java.net.URL url)
           
 boolean isAbsolute()
           
 java.io.InputStream openInputStream()
           
static java.io.InputStream openInputStream(java.net.URL url)
           
 java.io.OutputStream openOutputStream()
           
static java.io.OutputStream openOutputStream(java.net.URL url)
           
 Path resolve(java.lang.String relative)
           
 java.net.URI toURI()
           
static java.net.URI toURI(java.net.URL url)
           
 java.lang.String toURIString()
           
 java.net.URL toURL()
           
static URLPath valueOf(java.net.URL url)
           
 
Methods inherited from class gnu.text.URIPath
coerceToURIPathOrNull, compareTo, compareTo, encodeForUri, equals, getAuthority, getCanonical, getFragment, getHost, getPath, getPort, getQuery, getScheme, getUserInfo, hashCode, makeURI, toString, valueOf, valueOf
 
Methods inherited from class gnu.text.Path
coerceToPathOrNull, currentPath, exists, getAbsolute, getDirectory, getExtension, getLast, getParent, isDirectory, openInputStream, relativize, resolve, setCurrentPath, toURL, uriSchemeLength, uriSchemeSpecified, valueOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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)