bufferSize = num.getAsNumber().intValue();
} catch (ClassCastException e) {
throw new TemplateModelException("Expecting numerical argument to " + BUFFER_SIZE_KEY);
}
try {
TemplateBooleanModel flag = (TemplateBooleanModel)args.get(SINGLE_LINE_KEY);
if (flag != null)
singleLine = flag.getAsBoolean();
} catch (ClassCastException e) {
throw new TemplateModelException("Expecting boolean argument to " + SINGLE_LINE_KEY);
}
}
return new StandardCompressWriter(out, bufferSize, singleLine);