public class GlobusResource extends Object
| Constructor | Description |
|---|---|
GlobusResource(String resourcePath) |
Creates a new instance of GlobusResource referencing the
specified resourcePath.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
exists() |
|
File |
getFile() |
|
String |
getFilename() |
|
InputStream |
getInputStream() |
|
URI |
getURI() |
|
URL |
getURL() |
|
boolean |
isReadable() |
|
long |
lastModified() |
|
String |
toString() |
|
String |
toURI() |
|
String |
toURL() |
public GlobusResource(String resourcePath)
resourcePath - The path to the specified resource in the style
/directory/directory/fileName.extpublic String toURI()
public String toURL() throws MalformedURLException
MalformedURLExceptionpublic URI getURI() throws IOException
IOExceptionpublic URL getURL() throws MalformedURLException
MalformedURLExceptionpublic File getFile() throws IOException
IOExceptionpublic boolean exists()
public long lastModified()
throws IOException
IOExceptionpublic boolean isReadable()
public InputStream getInputStream() throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic String getFilename()
Copyright © 2018. All rights reserved.