public class HTMLContentHandler
extends java.lang.Object
implements org.xml.sax.ContentHandler
Constructor and Description |
---|
HTMLContentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
endPrefixMapping(java.lang.String prefix) |
HTMLContent |
getBodyHtmlContent() |
java.util.List<PageComponent> |
getGeneratedComponents()
PageComponent s are extracted from the input HTML stream on the basis of the parameterized component divs and the
TagHandler s registered with the TagHandlerProvider |
HTMLContent |
getHeadHtmlContent() |
java.lang.String |
getLanguage() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
void |
setCanvasResourceType(java.lang.String canvasResourceType)
Sets the unique canvas resourceType
|
void |
setDesignImporterContext(DesignImporterContext designImporterContext)
Sets the design importer context
|
void |
setDocumentLocator(org.xml.sax.Locator locator) |
void |
setPageBuilder(PageBuilder pageBuilder)
Sets the page builder for building page components.
|
void |
setTagHandlerProvider(TagHandlerProvider tagHandlerProvider)
Sets the
TagHandlerProvider |
void |
skippedEntity(java.lang.String name) |
void |
startDocument() |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public HTMLContent getBodyHtmlContent()
public java.util.List<PageComponent> getGeneratedComponents()
PageComponent
s are extracted from the input HTML stream on the basis of the parameterized component divs and the
TagHandler
s registered with the TagHandlerProvider
PageComponent
s extracted from the input HTML stream.public HTMLContent getHeadHtmlContent()
public java.lang.String getLanguage()
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void setCanvasResourceType(java.lang.String canvasResourceType)
canvasResourceType
- public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void setDesignImporterContext(DesignImporterContext designImporterContext)
designImporterContext
- The DesignImporterContext
context objectpublic void setPageBuilder(PageBuilder pageBuilder)
pageBuilder
- The PageBuilder
object for building PageComponent
spublic void setTagHandlerProvider(TagHandlerProvider tagHandlerProvider)
TagHandlerProvider
tagHandlerProvider
- The TagHandlerProvider
instancepublic void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"