|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.api.creator.DumpDocumentCreator
public class DumpDocumentCreator
Create an HTML or PDF file from a Mediawiki wiki which supports the
api.php
interface from http://en.wikipedia.org/w/api.php.
Constructor Summary | |
---|---|
DumpDocumentCreator(info.bliki.wiki.model.IWikiModel model,
info.bliki.wiki.dump.WikiArticle article)
|
Method Summary | |
---|---|
java.lang.String |
getFooter()
Get the HTML footer of this creator. |
java.lang.String |
getHeader()
Get the HTML header of this creator. |
void |
render(java.lang.Appendable appendable)
Render the given Wikipedia texts into an HTML string and use the default HTMLConverter. |
void |
render(info.bliki.wiki.filter.ITextConverter converter,
java.lang.Appendable appendable)
Render the given Wikipedia texts into a string for a given converter |
void |
renderPDF(java.lang.Appendable appendable)
Render the given Wikipedia texts into an HTML string and use the default PDFConverter. |
void |
renderPDFToFile(java.lang.String baseDirectoryName,
java.lang.String filename,
java.lang.String cssStyle)
Render the given Wikipedia texts into a PDF file. |
void |
renderToFile(info.bliki.wiki.filter.ITextConverter converter,
java.lang.String filename)
Render the given Wikipedia texts into an HTML file for the given converter. |
void |
renderToFile(java.lang.String filename)
Render the given Wikipedia texts into an HTML file. |
void |
setFooter(java.lang.String footer)
Set the HTML footer of this creator. |
void |
setHeader(java.lang.String header)
Set the HTML header set of this creator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DumpDocumentCreator(info.bliki.wiki.model.IWikiModel model, info.bliki.wiki.dump.WikiArticle article)
Method Detail |
---|
public void render(info.bliki.wiki.filter.ITextConverter converter, java.lang.Appendable appendable) throws java.io.IOException
converter
- a text converter. Note the converter may be
null
, if you only would like to analyze the raw wiki
text and don't need to convert. This speeds up the parsing
process.
java.io.IOException
public void render(java.lang.Appendable appendable) throws java.io.IOException
java.io.IOException
public void renderPDF(java.lang.Appendable appendable) throws java.io.IOException
java.io.IOException
public void renderToFile(info.bliki.wiki.filter.ITextConverter converter, java.lang.String filename) throws java.io.IOException
java.io.IOException
public void renderToFile(java.lang.String filename) throws java.io.IOException
java.io.IOException
public void renderPDFToFile(java.lang.String baseDirectoryName, java.lang.String filename, java.lang.String cssStyle) throws java.io.IOException
baseDirectoryName
- the base directory, where all files should be storedfilename
- the filename relative to the baseDirectorycssStyle
- CSS styles which should be used for rendering the PDF file
java.io.IOException
public java.lang.String getHeader()
null
if no HTML header is setpublic void setHeader(java.lang.String header)
public java.lang.String getFooter()
null
if no HTML footer is setpublic void setFooter(java.lang.String footer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |