com.lowagie.text.html.simpleparser

Class HTMLWorker

public class HTMLWorker extends Object implements SimpleXMLDocHandler, DocListener

Field Summary
ChainedPropertiescprops
ParagraphcurrentParagraph
protected DocListenerdocument
FactoryPropertiesfactoryProperties
HashMapinterfaceProps
booleanisPRE
protected ArrayListobjectList
booleanpendingLI
booleanpendingTD
booleanpendingTR
booleanskipText
Stackstack
StyleSheetstyle
StacktableState
static HashMaptagsSupported
static StringtagsSupportedString
Constructor Summary
HTMLWorker(DocListener document)
Creates a new instance of HTMLWorker
Method Summary
booleanadd(Element element)
voidclearTextWrap()
voidclose()
voidendDocument()
voidendElement(String tag)
HashMapgetInterfaceProps()
StyleSheetgetStyleSheet()
static floatlengthParse(String txt, int c)
booleannewPage()
voidopen()
voidparse(Reader reader)
static ArrayListparseToList(Reader reader, StyleSheet style)
static ArrayListparseToList(Reader reader, StyleSheet style, HashMap interfaceProps)
voidresetFooter()
voidresetHeader()
voidresetPageCount()
voidsetFooter(HeaderFooter footer)
voidsetHeader(HeaderFooter header)
voidsetInterfaceProps(HashMap interfaceProps)
booleansetMarginMirroring(boolean marginMirroring)
booleansetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
voidsetPageCount(int pageN)
booleansetPageSize(Rectangle pageSize)
voidsetStyleSheet(StyleSheet style)
voidstartDocument()
voidstartElement(String tag, HashMap h)
voidtext(String str)

Field Detail

cprops

private ChainedProperties cprops

currentParagraph

private Paragraph currentParagraph

document

protected DocListener document

factoryProperties

private FactoryProperties factoryProperties

interfaceProps

private HashMap interfaceProps

isPRE

private boolean isPRE

objectList

protected ArrayList objectList

pendingLI

private boolean pendingLI

pendingTD

private boolean pendingTD

pendingTR

private boolean pendingTR

skipText

private boolean skipText

stack

private Stack stack

style

private StyleSheet style

tableState

private Stack tableState

tagsSupported

public static final HashMap tagsSupported

tagsSupportedString

public static final String tagsSupportedString

Constructor Detail

HTMLWorker

public HTMLWorker(DocListener document)
Creates a new instance of HTMLWorker

Method Detail

add

public boolean add(Element element)

clearTextWrap

public void clearTextWrap()

close

public void close()

endDocument

public void endDocument()

endElement

public void endElement(String tag)

getInterfaceProps

public HashMap getInterfaceProps()

getStyleSheet

public StyleSheet getStyleSheet()

lengthParse

private static float lengthParse(String txt, int c)

newPage

public boolean newPage()

open

public void open()

parse

public void parse(Reader reader)

parseToList

public static ArrayList parseToList(Reader reader, StyleSheet style)

parseToList

public static ArrayList parseToList(Reader reader, StyleSheet style, HashMap interfaceProps)

resetFooter

public void resetFooter()

resetHeader

public void resetHeader()

resetPageCount

public void resetPageCount()

setFooter

public void setFooter(HeaderFooter footer)

setHeader

public void setHeader(HeaderFooter header)

setInterfaceProps

public void setInterfaceProps(HashMap interfaceProps)

setMarginMirroring

public boolean setMarginMirroring(boolean marginMirroring)

setMargins

public boolean setMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)

setPageCount

public void setPageCount(int pageN)

setPageSize

public boolean setPageSize(Rectangle pageSize)

setStyleSheet

public void setStyleSheet(StyleSheet style)

startDocument

public void startDocument()

startElement

public void startElement(String tag, HashMap h)

text

public void text(String str)