out.close();
String result = out.toString();
if( logger.isDebugEnabled() ) {
timer.stop();
int compressionPercentage = 100 - (result.length() * 100 / debugCodeLength);
timer.logDebugTimeInMilliseconds( "Finished minification for '" + inputFilename + "'. Debug code length: " + debugCodeLength + ", Minified length: " + result.length() + ", Compression: " + compressionPercentage + "%. Time");
}
return result;
}
catch (UnsupportedEncodingException e) {
logger.warn( "Unable to minify '" + inputFilename + "'.", e );