|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.DocWriter
com.lowagie.text.html.HtmlWriter
net.sourceforge.rssowl.util.document.ExtendedHtmlWriter
This class extends the HtmlWriter of iText and will prevent the write() Method to encode the written String and escape HTML tags.
Field Summary |
Fields inherited from class com.lowagie.text.html.HtmlWriter |
BEGINCOMMENT, currentfont, ENDCOMMENT, footer, header, imagepath, NBSP, pageN, standardfont |
Fields inherited from class com.lowagie.text.DocWriter |
closeStream, document, EQUALS, FORWARD, GT, LT, NEWLINE, open, os, pageSize, pause, QUOTE, SPACE, TAB |
Constructor Summary | |
protected |
ExtendedHtmlWriter(com.lowagie.text.Document doc,
OutputStream os)
Constructs a HtmlWriter. |
Method Summary | |
static com.lowagie.text.html.HtmlWriter |
getInstance(com.lowagie.text.Document document,
OutputStream os)
Gets an instance of the ExtendedHtmlWriter |
void |
setBase(String url)
Writes a base reference in the header. |
private String |
simpleHtmlEncode(String str)
Since the ExtendedHtmlWriter is not calling the HtmlEncoder.encode() Method we have to offer our own implementation. |
protected void |
write(com.lowagie.text.Element element,
int indent)
Writes the HTML representation of an element. |
Methods inherited from class com.lowagie.text.html.HtmlWriter |
add, add, close, initFooter, initHeader, isOtherFont, newPage, open, resetImagepath, setFooter, setHeader, setImagepath, setStandardFont, write, writeComment, writeCssProperty, writeHeader, writeJavaScript, writeLink, writeSection |
Methods inherited from class com.lowagie.text.DocWriter |
add, addTabs, clearTextWrap, flush, getISOBytes, hasMarkupAttributes, isCloseStream, pause, removeWatermark, resetFooter, resetHeader, resetPageCount, resume, setCloseStream, setMargins, setPageCount, setPageSize, write, write, writeEnd, writeEnd, writeMarkupAttributes, writeStart |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.lowagie.text.DocListener |
add, clearTextWrap, removeWatermark, resetFooter, resetHeader, resetPageCount, setMargins, setPageCount, setPageSize |
Constructor Detail |
protected ExtendedHtmlWriter(com.lowagie.text.Document doc, OutputStream os)
doc
- The Document that has to be written as HTMLos
- The OutputStream the writer has to write to.Method Detail |
public static com.lowagie.text.html.HtmlWriter getInstance(com.lowagie.text.Document document, OutputStream os)
document
- The Document that has to be writtenos
- The OutputStream the writer has to write to.
public void setBase(String url)
url
- The URL of the BASE referenceprivate String simpleHtmlEncode(String str)
str
- The String to encode
protected void write(com.lowagie.text.Element element, int indent) throws IOException
element
- the elementindent
- the indentation
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |