public abstract class Resource extends Object
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Overridden to finalize; always returns object identity.
|
abstract long |
getLastModified()
Returns the last modified time of the compilation unit.
|
abstract String |
getLocation()
Returns the URL-like location of the resource.
|
abstract String |
getPath()
Returns the full abstract path of the resource.
|
String |
getPathPrefix()
If some prefix was stripped from the path, as is for RerootedResources,
retrieve it back with this method.
|
URL |
getURL()
Deprecated.
with no replacement
|
int |
hashCode()
Overridden to finalize; always returns identity hash code.
|
abstract InputStream |
openContents()
Returns the contents of the resource.
|
String |
toString()
Overridden to finalize; always returns
getLocation() . |
abstract boolean |
wasRerooted() |
public final boolean equals(Object obj)
public abstract long getLastModified()
public abstract String getLocation()
public abstract String getPath()
public String getPathPrefix()
@Deprecated public final URL getURL()
null
.public final int hashCode()
public abstract InputStream openContents() throws IOException
IOException
public final String toString()
getLocation()
.public abstract boolean wasRerooted()
Copyright © 2018. All rights reserved.