|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.hyphenation.HyphenationTreeCache
public class HyphenationTreeCache
This is a cache for HyphenationTree instances.
Constructor Summary | |
---|---|
HyphenationTreeCache()
|
Method Summary | |
---|---|
void |
cache(java.lang.String key,
HyphenationTree hTree)
Cache a hyphenation tree under its key. |
static java.lang.String |
constructKey(java.lang.String lang,
java.lang.String country)
Constructs the key for the hyphenation pattern file. |
HyphenationTree |
getHyphenationTree(java.lang.String lang,
java.lang.String country)
Looks in the cache if a hyphenation tree is available and returns it if it is found. |
boolean |
isMissing(java.lang.String key)
Indicates whether a hyphenation file has been requested before but it wasn't available. |
void |
noteMissing(java.lang.String key)
Notes a key to a hyphenation tree as missing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HyphenationTreeCache()
Method Detail |
---|
public HyphenationTree getHyphenationTree(java.lang.String lang, java.lang.String country)
lang
- the languagecountry
- the country (may be null or "none")
public static java.lang.String constructKey(java.lang.String lang, java.lang.String country)
lang
- the languagecountry
- the country (may be null or "none")
public void cache(java.lang.String key, HyphenationTree hTree)
key
- the key (ex. "de_CH" or "en")hTree
- the hyphenation treepublic void noteMissing(java.lang.String key)
key
- the key (ex. "de_CH" or "en")public boolean isMissing(java.lang.String key)
key
- the key (ex. "de_CH" or "en")
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |