public interface FSSupplier<T>
| Modifier and Type | Field and Description |
|---|---|
static long |
UNKNOWN_LAST_MODIFIED
Returned by
lastModified() if the age of the supplied resource is unknown. |
| Modifier and Type | Method and Description |
|---|---|
default String |
cacheKey()
A key that uniquely identifies the resource this supplier supplies, typically the absolute
URI it is loaded from.
|
default long |
lastModified()
When the supplied resource was last modified, or
UNKNOWN_LAST_MODIFIED - the
default - if that can not be determined. |
T |
supply() |
static final long UNKNOWN_LAST_MODIFIED
lastModified() if the age of the supplied resource is unknown.T supply()
default String cacheKey()
FontCache.
The key has to be absolute: a relative URI such as font.ttf refers to different
resources depending on the document it appears in. Return null - the default - if no such
key can be provided, in which case the resource is not cached.
default long lastModified()
UNKNOWN_LAST_MODIFIED - the
default - if that can not be determined. A cached resource is reloaded whenever this value
changes, so implementations may return any value that changes with the resource.Copyright © 2004–2026. All rights reserved.