@Override public String toString() { final String pluginKey = plugin != null ? plugin.getKey() : ""; return "Resource: " + pluginKey + " " + getLocation() + " (" + getContentType() + ")"; }
/** * This is called to use a minification naming strategy to find resources. * If a minified file cant by found then the base location is used as the * fall back * * @return an InputStream r null if nothing can be found for the resource * name */ private InputStream getResourceAsStreamViaMinificationStrategy() { InputStream inputStream = null; final String location = getLocation(); if (minificationStrategyInPlay(location)) { final String minifiedLocation = getMinifiedLocation(location); inputStream = getResourceAsStream(minifiedLocation); } if (inputStream == null) { inputStream = getResourceAsStream(location); } return inputStream; }