public class StringResource extends Object implements Resource
| Constructor and Description |
|---|
StringResource(String displayName,
CharSequence contents) |
| 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.
|
public StringResource(String displayName, CharSequence contents)
public String getDisplayName()
ResourcegetDisplayName in interface Resourcepublic String getText()
Resourcepublic File getFile()
Resourcepublic URI getURI()
ResourceCopyright © 2013. All rights reserved