| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.peaseplate.locator.AbstractLocator
public abstract class AbstractLocator
A abstract implementation of a locator.
| Constructor Summary | |
|---|---|
| AbstractLocator(ResourceKey key)Create the locator with the specified key | |
| AbstractLocator(java.lang.String name,
                java.util.Locale locale,
                java.lang.String encoding)Create the locator with the specified name locale and encoding | |
| Method Summary | |
|---|---|
|  ResourceKey | getKey()Returns the key | 
|  java.lang.Long | getRawSize()Returns the raw size of the resource. | 
|  java.lang.Long | getTimestamp()Returns the timestamp of the resource. | 
|  void | setRawSize(java.lang.Long rawSize)Sets the raw size | 
|  void | setTimestamp(java.lang.Long timestamp)Sets the timestamp | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.peaseplate.locator.Locator | 
|---|
| isOutdated, toString | 
| Constructor Detail | 
|---|
public AbstractLocator(java.lang.String name,
                       java.util.Locale locale,
                       java.lang.String encoding)
                throws java.lang.IllegalArgumentException
name - the namelocale - the localeencoding - the encoding
java.lang.IllegalArgumentException - if the name is null
public AbstractLocator(ResourceKey key)
                throws java.lang.IllegalArgumentException
key - the key
java.lang.IllegalArgumentException - if the key is null| Method Detail | 
|---|
public ResourceKey getKey()
Locator
getKey in interface LocatorLocator.getKey()public java.lang.Long getTimestamp()
Locator
getTimestamp in interface LocatorLocator.getTimestamp()public void setTimestamp(java.lang.Long timestamp)
Locator
setTimestamp in interface Locatortimestamp - the timestamp, may be nullLocator.setTimestamp(java.lang.Long)public java.lang.Long getRawSize()
Locator
getRawSize in interface LocatorLocator.getRawSize()public void setRawSize(java.lang.Long rawSize)
Locator
setRawSize in interface LocatorrawSize - the raw size, may be nullLocator.setRawSize(java.lang.Long)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||