@Override
	protected StringBuffer doPostProcessBundle(BundleProcessingStatus status, StringBuffer bundleData)
			throws IOException {
		LOGGER.info("Post processing file '" + status.getLastPathAdded() + "'");

		String bundleMediaTypePropertyName = "jawr.css.bundle." + status.getCurrentBundle().getName() + ".media";
		JawrConfig config = status.getJawrConfig();
		String bundleMediaType = (String) config.getProperty(bundleMediaTypePropertyName);
		if (bundleMediaType == null) {
			LOGGER.warn("no bundle media type provided; use 'screen'");
			bundleMediaType = "screen";
		}

		LOGGER.info("bundle media type: " + bundleMediaType);

		StringBuffer sb = new StringBuffer(
				CSS_MEDIA_RULE + " " + bundleMediaType + " " + CSS_MEDIA_RULE_OPEN + StringUtils.STR_LINE_FEED);
		sb.append(bundleData);
		sb.append(CSS_MEDIA_RULE_CLOSE + StringUtils.STR_LINE_FEED + StringUtils.STR_LINE_FEED);

		LOGGER.info("Postprocessing finished");
		return sb;
	}
@ Override protected StringBuffer doPostProcessBundle ( BundleProcessingStatus status , StringBuffer bundleData ) throws IOException { LOGGER . info ( "Post processing file '" + status . getLastPathAdded ( ) + "'" ) ; String bundleMediaTypePropertyName = "jawr.css.bundle." + status . getCurrentBundle ( ) . getName ( ) + ".media" ; JawrConfig config = status . getJawrConfig ( ) ; String bundleMediaType = ( String ) config . getProperty ( bundleMediaTypePropertyName ) ; if ( bundleMediaType == null ) { LOGGER . warn ( "no bundle media type provided; use 'screen'" ) ; bundleMediaType = "screen" ; } LOGGER . info ( "bundle media type: " + bundleMediaType ) ; StringBuffer sb = new StringBuffer ( CSS_MEDIA_RULE + " " + bundleMediaType + " " + CSS_MEDIA_RULE_OPEN + StringUtils . STR_LINE_FEED ) ; sb . append ( bundleData ) ; sb . append ( CSS_MEDIA_RULE_CLOSE + StringUtils . STR_LINE_FEED + StringUtils . STR_LINE_FEED ) ; LOGGER . info ( "Postprocessing finished" ) ; return sb ; }
/*
(non-Javadoc)

@see net.jawr.web.resource.bundle.postprocess.
AbstractChainedResourceBundlePostProcessor
#doPostProcessBundle(net.jawr.web.resource.bundle.postprocess
.BundleProcessingStatus, java.lang.StringBuffer)