public class HTMLWorker extends Object implements com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, com.lowagie.text.DocListener
| Modifier and Type | Field and Description |
|---|---|
protected com.lowagie.text.DocListener |
document |
protected ArrayList |
objectList |
static HashMap |
tagsSupported |
static String |
tagsSupportedString |
| Constructor and Description |
|---|
HTMLWorker(com.lowagie.text.DocListener document)
Creates a new instance of HTMLWorker
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(com.lowagie.text.Element element) |
void |
clearTextWrap() |
void |
close() |
void |
endDocument() |
void |
endElement(String tag) |
HashMap |
getInterfaceProps() |
com.lowagie.text.html.simpleparser.StyleSheet |
getStyleSheet() |
boolean |
newPage() |
void |
open() |
void |
parse(Reader reader) |
static ArrayList |
parseToList(Reader reader,
com.lowagie.text.html.simpleparser.StyleSheet style) |
static ArrayList |
parseToList(Reader reader,
com.lowagie.text.html.simpleparser.StyleSheet style,
HashMap interfaceProps) |
void |
resetFooter() |
void |
resetHeader() |
void |
resetPageCount() |
void |
setFooter(com.lowagie.text.HeaderFooter footer) |
void |
setHeader(com.lowagie.text.HeaderFooter header) |
void |
setInterfaceProps(HashMap interfaceProps) |
boolean |
setMarginMirroring(boolean marginMirroring) |
boolean |
setMargins(float marginLeft,
float marginRight,
float marginTop,
float marginBottom) |
void |
setMaxWidth(int width) |
void |
setPageCount(int pageN) |
boolean |
setPageSize(com.lowagie.text.Rectangle pageSize) |
void |
setStyleSheet(com.lowagie.text.html.simpleparser.StyleSheet style) |
void |
startDocument() |
void |
startElement(String tag,
HashMap h) |
void |
text(String str) |
protected ArrayList objectList
protected com.lowagie.text.DocListener document
public static final String tagsSupportedString
public static final HashMap tagsSupported
public HTMLWorker(com.lowagie.text.DocListener document)
public void setStyleSheet(com.lowagie.text.html.simpleparser.StyleSheet style)
public com.lowagie.text.html.simpleparser.StyleSheet getStyleSheet()
public void setInterfaceProps(HashMap interfaceProps)
public HashMap getInterfaceProps()
public void parse(Reader reader) throws IOException
IOExceptionpublic static ArrayList parseToList(Reader reader, com.lowagie.text.html.simpleparser.StyleSheet style) throws IOException
IOExceptionpublic static ArrayList parseToList(Reader reader, com.lowagie.text.html.simpleparser.StyleSheet style, HashMap interfaceProps) throws IOException
IOExceptionpublic void endDocument()
endDocument in interface com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerpublic void startDocument()
startDocument in interface com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerpublic void startElement(String tag, HashMap h)
startElement in interface com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerpublic void endElement(String tag)
endElement in interface com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerpublic void text(String str)
text in interface com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerpublic boolean add(com.lowagie.text.Element element)
throws com.lowagie.text.DocumentException
add in interface com.lowagie.text.ElementListenercom.lowagie.text.DocumentExceptionpublic void clearTextWrap()
throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionpublic void close()
close in interface com.lowagie.text.DocListenerpublic boolean newPage()
newPage in interface com.lowagie.text.DocListenerpublic void open()
open in interface com.lowagie.text.DocListenerpublic void resetFooter()
resetFooter in interface com.lowagie.text.DocListenerpublic void resetHeader()
resetHeader in interface com.lowagie.text.DocListenerpublic void resetPageCount()
resetPageCount in interface com.lowagie.text.DocListenerpublic void setFooter(com.lowagie.text.HeaderFooter footer)
setFooter in interface com.lowagie.text.DocListenerpublic void setHeader(com.lowagie.text.HeaderFooter header)
setHeader in interface com.lowagie.text.DocListenerpublic boolean setMarginMirroring(boolean marginMirroring)
setMarginMirroring in interface com.lowagie.text.DocListenerpublic boolean setMargins(float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
setMargins in interface com.lowagie.text.DocListenerpublic void setPageCount(int pageN)
setPageCount in interface com.lowagie.text.DocListenerpublic boolean setPageSize(com.lowagie.text.Rectangle pageSize)
setPageSize in interface com.lowagie.text.DocListenerpublic void setMaxWidth(int width)
Copyright © 2005-2014 Sakai Project. All Rights Reserved.