|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 nullpublic AbstractLocator(ResourceKey key) throws java.lang.IllegalArgumentException
key
- the key
java.lang.IllegalArgumentException
- if the key is nullMethod Detail |
---|
public ResourceKey getKey()
Locator
getKey
in interface Locator
Locator.getKey()
public java.lang.Long getTimestamp()
Locator
getTimestamp
in interface Locator
Locator.getTimestamp()
public void setTimestamp(java.lang.Long timestamp)
Locator
setTimestamp
in interface Locator
timestamp
- the timestamp, may be nullLocator.setTimestamp(java.lang.Long)
public java.lang.Long getRawSize()
Locator
getRawSize
in interface Locator
Locator.getRawSize()
public void setRawSize(java.lang.Long rawSize)
Locator
setRawSize
in interface Locator
rawSize
- 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 |