org.globus.util
public class GlobusResource extends java.lang.Object
Constructor and Description |
---|
GlobusResource(java.lang.String resourcePath)
Creates a new instance of GlobusResource referencing the
specified resourcePath.
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
java.io.File |
getFile() |
java.lang.String |
getFilename() |
java.io.InputStream |
getInputStream() |
java.net.URI |
getURI() |
java.net.URL |
getURL() |
boolean |
isReadable() |
long |
lastModified() |
java.lang.String |
toString() |
java.lang.String |
toURI() |
java.lang.String |
toURL() |
public GlobusResource(java.lang.String resourcePath)
resourcePath
- The path to the specified resource in the style
/directory/directory/fileName.extpublic java.lang.String toURI()
public java.lang.String toURL() throws java.net.MalformedURLException
java.net.MalformedURLException
public java.net.URI getURI() throws java.io.IOException
java.io.IOException
public java.net.URL getURL() throws java.net.MalformedURLException
java.net.MalformedURLException
public java.io.File getFile() throws java.io.IOException
java.io.IOException
public boolean exists()
public long lastModified() throws java.io.IOException
java.io.IOException
public boolean isReadable()
public java.io.InputStream getInputStream() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public java.lang.String getFilename()
public java.lang.String toString()
toString
in class java.lang.Object