public class HtmlFileExporterImpl extends HtmlExporterImpl implements ExportUtils.HtmlFileExporter
ExportUtils.HtmlExporter.Attribute, ExportUtils.HtmlExporter.Element, ExportUtils.HtmlExporter.MacroResolver
Modifier | Constructor and Description |
---|---|
|
HtmlFileExporterImpl(File aFile)
Creates a new HtmlFileExporterImpl instance for writing to the given file
in UTF-8.
|
protected |
HtmlFileExporterImpl(Writer aWriter)
Creates a new HtmlFileExporterImpl instance for writing to the given
Writer.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this exporter and writes everything down to file.
|
void |
write(ExportUtils.HtmlExporter.MacroResolver aResolver)
Writes the HTML export to file using the given macro resolver to resolve
any macros.
|
addCssStyle, getBody, getHead, setTitle, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCssStyle, getBody, getHead, setTitle, toString
public final Writer writer
public HtmlFileExporterImpl(File aFile) throws IOException
aFile
- the file to write to, cannot be null
;IOException
- in case of I/O problems.protected HtmlFileExporterImpl(Writer aWriter)
aWriter
- the writer to write to, cannot be null
;public void close() throws IOException
close
in interface ExportUtils.HtmlFileExporter
IOException
- in case of I/O problems.public void write(ExportUtils.HtmlExporter.MacroResolver aResolver) throws IOException
ExportUtils.HtmlFileExporter
write
in interface ExportUtils.HtmlFileExporter
aResolver
- the macro resolver to use, cannot be null
.IOException
- in case of I/O problems.ExportUtils.HtmlFileExporter.write(nl.lxtreme.ols.util.ExportUtils.HtmlExporter.MacroResolver)
Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.