
org.xhtmlrenderer.context.StylesheetCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flying-saucer-core Show documentation
Show all versions of flying-saucer-core Show documentation
Flying Saucer is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code as well as Java2D output.
The newest version!
package org.xhtmlrenderer.context;
import org.xhtmlrenderer.css.sheet.Stylesheet;
import java.util.LinkedHashMap;
import java.util.Map;
class StylesheetCache extends LinkedHashMap {
private static final int cacheCapacity = 16;
StylesheetCache() {
super(cacheCapacity, 0.75f, true);
}
@Override
protected boolean removeEldestEntry(Map.Entry eldest) {
return size() > cacheCapacity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy