public class FileResourceLoader extends Object implements ResourceLoader
| Constructor and Description |
|---|
FileResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent(String fileName)
Returns text content of a resource
|
long |
getLastChangeTimestamp(String fileName)
Returns timestamp of last resource modification
|
boolean |
isAvailable(String fileName)
Returns whether resource with given name can be loaded
|
static void |
main(String[] args) |
public boolean isAvailable(String fileName)
ResourceLoaderisAvailable in interface ResourceLoaderfileName - the name of a resource to loadpublic long getLastChangeTimestamp(String fileName)
ResourceLoadergetLastChangeTimestamp in interface ResourceLoaderpublic String getContent(String fileName)
ResourceLoadergetContent in interface ResourceLoaderCopyright © 2010-2014 anotheria.net. All Rights Reserved.