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, wait
open, openOrFail
public void close(Reader reader) throws IOException
ResourceLoader
close
in interface ResourceLoader
reader
- the reader to closeIOException
- if reader fasils to closepublic Object getKey(String filename)
getKey
in interface ResourceLoader
filename
- the name we want to identifypublic Object getResourceVersionId(String filename)
getResourceVersionId
in interface ResourceLoader
filename
- the name of the resource to check for resourcesCopyright © 2010–2019 Google. All rights reserved.