block.insertRest (buf);
System.arraycopy (arr, 0, buf, rs, arr.length);
arr = buf;
}
parser.setText (arr);
HtmlBlock currentBlock = null;
try {
currentBlock = parser.parse ();
for (HtmlFilter hf : filters)
hf.filterHtml (currentBlock);
currentBlock.send (out);
} catch (HtmlParseException e) {
getLogger ().logInfo ("Bad HTML: " + e.toString ());
out.write (arr);
currentBlock = null;
}
if (currentBlock != null && currentBlock.restSize () > 0)
block = currentBlock;
else
block = null;
}