* @throws IOException if an I/O error occurs.
* @throws InvocationTargetException if a lexer class is specified which can't be instantiated.
* @throws CompileException if a bte template is specified which can't be compiled.
*/
public void writeFullHTML() throws IOException, InvocationTargetException, CompileException {
Lexer lexer = this.lexer;
if (lexer == null) lexer = getLexerFromClass(lexerType);
if (lexer == null) lexer = getLexerFromMime();
if (lexer == null) lexer = getLexerFromExt();
boolean noBTE = false;
try {