org.xwiki.rendering.wikimodel.xhtml.impl
Class XhtmlHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.xwiki.rendering.wikimodel.xhtml.impl.XhtmlHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler
public class XhtmlHandler
- extends org.xml.sax.helpers.DefaultHandler
- implements LexicalHandler
- Since:
- 4.0M1
- Version:
- $Id$
|
Method Summary |
void |
characters(char[] array,
int start,
int length)
|
void |
comment(char[] array,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
endEntity(String arg0)
|
protected String |
getHref(Attributes attributes)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String arg0,
String arg1,
String arg2)
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
void |
startEntity(String arg0)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fDocumentSectionUri
protected String fDocumentSectionUri
fDocumentUri
protected String fDocumentUri
fDocumentWikiProperties
protected String fDocumentWikiProperties
XhtmlHandler
public XhtmlHandler(WikiScannerContext context,
Map<String,TagHandler> extraHandlers)
XhtmlHandler
public XhtmlHandler(WikiScannerContext context,
Map<String,TagHandler> extraHandlers,
CommentHandler commentHandler)
- Parameters:
context -
characters
public void characters(char[] array,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException- See Also:
DefaultHandler.characters(char[], int, int)
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException- See Also:
DefaultHandler.endDocument()
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException- See Also:
DefaultHandler.endElement(java.lang.String,
java.lang.String, java.lang.String)
getHref
protected String getHref(Attributes attributes)
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException- See Also:
DefaultHandler.startDocument()
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException- See Also:
DefaultHandler.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)
comment
public void comment(char[] array,
int start,
int length)
throws SAXException
- Specified by:
comment in interface LexicalHandler
- Throws:
SAXException
endCDATA
public void endCDATA()
throws SAXException
- Specified by:
endCDATA in interface LexicalHandler
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Specified by:
endDTD in interface LexicalHandler
- Throws:
SAXException
endEntity
public void endEntity(String arg0)
throws SAXException
- Specified by:
endEntity in interface LexicalHandler
- Throws:
SAXException
startCDATA
public void startCDATA()
throws SAXException
- Specified by:
startCDATA in interface LexicalHandler
- Throws:
SAXException
startDTD
public void startDTD(String arg0,
String arg1,
String arg2)
throws SAXException
- Specified by:
startDTD in interface LexicalHandler
- Throws:
SAXException
startEntity
public void startEntity(String arg0)
throws SAXException
- Specified by:
startEntity in interface LexicalHandler
- Throws:
SAXException
Copyright © 2004-2012 XWiki. All Rights Reserved.