String in = fileHelper.readFileToString(f); // must use our reader
// process compressible files
if (".js".equals(ext)) {
JavaScriptCompressor compressor = new JavaScriptCompressor(in, reporter); in=null;
out = compressor.compress(linebreakpos, munge, ycVerbose,
preserveAllSemiColons, disableOptimizations);
} else if (".css".equals(ext) && yuiCompressCss) {
CssCompressor compressor = new CssCompressor(in); in=null; // under the covers YUI just appends to a new SB
out = compressor.compress(linebreakpos); // their final product is just a string, just get that directly