public class StringResource extends java.lang.Object implements Resource
| Constructor and Description |
|---|
StringResource(java.lang.String displayName,
java.lang.CharSequence contents) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName()
Returns a display name for this resource.
|
boolean |
getExists()
Returns true if this resource exists, false if it does not exist.
|
java.io.File |
getFile()
Returns a file representing this resource.
|
java.lang.String |
getText()
Returns the content of this resource, as a String.
|
java.net.URI |
getURI()
Returns the URI for this resource.
|
public StringResource(java.lang.String displayName,
java.lang.CharSequence contents)
public java.lang.String getDisplayName()
ResourcegetDisplayName in interface Resourcepublic java.lang.String getText()
Resourcepublic java.io.File getFile()
Resourcepublic java.net.URI getURI()
ResourceCopyright © 2013. All rights reserved