All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xhtmlrenderer.context.StylesheetCache Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 9.11.0
Show newest version
package org.xhtmlrenderer.context;

import org.xhtmlrenderer.css.sheet.Stylesheet;

import java.util.LinkedHashMap;

class StylesheetCache extends LinkedHashMap {
    private static final int cacheCapacity = 16;

    StylesheetCache() {
        super(cacheCapacity,  0.75f, true);
    }

    protected boolean removeEldestEntry(java.util.Map.Entry eldest) {
        return size() > cacheCapacity;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy