public abstract class BaseResourceLoader extends Object implements ResourceLoader
ResourceLoader| Constructor and Description |
|---|
BaseResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Reader reader)
Close the reader.
|
Object |
getKey(String filename)
Default implementation returns the filename as the ResourceLoaders that subclass this class
tend to assume they are the only ResourceLoader in use.
|
Object |
getResourceVersionId(String filename)
Default implementation does not check whether the resource has changed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopen, openOrFailpublic void close(Reader reader) throws IOException
ResourceLoaderclose in interface ResourceLoaderreader - the reader to closeIOException - if reader fasils to closepublic Object getKey(String filename)
getKey in interface ResourceLoaderfilename - the name we want to identifypublic Object getResourceVersionId(String filename)
getResourceVersionId in interface ResourceLoaderfilename - the name of the resource to check for resourcesCopyright © 2010–2015 Google. All rights reserved.