| Constructor and Description |
|---|
StringResource(String fileName,
String text) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFileName()
Returns a decorative "file name" that can be used for reporting errors and the like.
|
long |
lastModified()
Returns the time of the last modification, in milliseconds since 1970, or
0L if the time of the last
modification cannot be determined. |
InputStream |
open()
Opens the resource.
|
String |
toString() |
public final String getFileName()
ResourcegetFileName in interface Resourcepublic final InputStream open()
ResourceInputStream.public final long lastModified()
Resource0L if the time of the last
modification cannot be determined.lastModified in interface ResourceCopyright © 2019. All rights reserved.