this.codeSnippetBuffer.append(this.scanner.source, lineStart, end+1-lineStart);
}
}
// 2 - convert HTML to Java (@see JavaDocRegion#convertHtml2Java)
HTMLEntity2JavaReader reader= new HTMLEntity2JavaReader(new StringReader(this.codeSnippetBuffer.toString()));
char[] buf= new char[this.codeSnippetBuffer.length()]; // html2text never gets longer, only shorter!
String convertedSnippet;
try {
int read= reader.read(buf);
convertedSnippet = new String(buf, 0, read);
reader.close();
} catch (IOException e) {
// should not happen
CommentFormatterUtil.log(e);
return;
}