final String lineSep = System.getProperty("line.separator");
LOG.debug(links.size() + " links found");
for (final Iterator iter = links.iterator(); iter.hasNext();)
{
final PDFLink link = (PDFLink) iter.next();
buf.append(link.getPage()).append("|");
buf.append(link.getText()).append("|");
buf.append(link.getHref()).append(lineSep);
}
LOG.debug("Defining current response with: " + buf.toString());
ContextHelper.defineAsCurrentResponse(getContext(), buf.toString(), "text/plain", "http:" + this.getClass().getName());
}