132133134135136137138139140141142
} }; } private ContentHandler getBodyHandler(final XHTMLContentHandler xhtml) { return new TextContentHandler(xhtml) { private int discardLevel = 0; @Override public void startElement(
82838485868788
xhtml.endDocument(); } protected ContentHandler getContentHandler( ContentHandler handler, Metadata metadata, ParseContext context) { return new TextContentHandler(handler); }
50515253545556
} protected TextContentHandler handler; public CHM2XHTML(CHMDocumentInformation chmDoc, ContentHandler handler) { this.handler = new TextContentHandler(handler); }
81828384858687
parse(stream, handler, metadata, new ParseContext()); } protected ContentHandler getContentHandler( ContentHandler handler, Metadata metadata) { return new TextContentHandler(handler); }
} } protected ContentHandler getContentHandler( ContentHandler handler, Metadata metadata, ParseContext context) { return new TextContentHandler(handler, true); }