public interface Resource extends Serializable
Resource represents some binary artifact.
Implementations are not required to be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName()
Returns a display name for this resource.
|
boolean |
getExists()
Returns true if this resource exists, false if it does not exist.
|
File |
getFile()
Returns a file representing this resource.
|
String |
getText()
Returns the content of this resource, as a String.
|
URI |
getURI()
Returns the URI for this resource.
|
String getDisplayName()
File getFile()
URI getURI()
boolean getExists()
String getText() throws ResourceNotFoundException
ResourceNotFoundException - When this resource does not exist.Copyright © 2013. All rights reserved