public interface HtmlDocumentHandler
HtmlDocumentBuilder
which is responsible for emitting the HTML document tags and content
which wrap the body's content. Normally this would include the <html>
and <body>
tags, however
implementations may emit any content.
Example implementation:
class MyHtmlDocumentHandler implements HtmlDocumentHandler {
Modifier and Type | Method and Description |
---|---|
void |
beginDocument(HtmlDocumentBuilder builder,
XmlStreamWriter writer)
Writes the content that occurs at the start of the document up to and including the
<body> tag (if any). |
void |
endDocument(HtmlDocumentBuilder builder,
XmlStreamWriter writer)
Writes the content that occurs at the end of the document startign with the
</body> closing tag (if any). |
void beginDocument(HtmlDocumentBuilder builder, XmlStreamWriter writer)
<body>
tag (if any).builder
- the builder the builder for which the handler is being invokedwriter
- the writer to which content is writtenvoid endDocument(HtmlDocumentBuilder builder, XmlStreamWriter writer)
</body>
closing tag (if any).builder
- the builder the builder for which the handler is being invokedwriter
- the writer to which content is writtenCopyright © 2007, 2013 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html