public class XHTMLWhitespaceXMLFilter extends DefaultXMLFilter
text(sp)(sp)text becomes text(sp)textSAX_LEXICAL_HANDLER_PROPERTY| Constructor and Description |
|---|
XHTMLWhitespaceXMLFilter() |
XHTMLWhitespaceXMLFilter(XMLReader reader) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendInlineEvent(org.xwiki.rendering.wikimodel.xhtml.filter.XHTMLWhitespaceXMLFilter.Event event)
Append an inline element.
|
void |
characters(char[] ch,
int start,
int length) |
protected void |
cleanContentExtraWhiteSpaces()
UC3: Replace group of white spaces by a single space.
|
void |
comment(char[] ch,
int start,
int length) |
void |
endCDATA() |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
protected void |
endEmptyVisibleElement() |
protected void |
endNonVisibleElement()
Flush previous content and print current one.
|
protected void |
flushContent()
Flush previous content and print current one.
|
protected void |
flushContent(boolean trimTrailing)
Flush previous content and print current one.
|
protected StringBuffer |
getContent() |
protected boolean |
isSemanticComment(String comment)
We remove spaces around non semantic comments.
|
protected void |
sendCharacters(char[] ch) |
protected void |
sendCharacters(char[] ch,
int start,
int length) |
protected void |
sendInlineEvent(org.xwiki.rendering.wikimodel.xhtml.filter.XHTMLWhitespaceXMLFilter.Event event) |
protected void |
sendPreviousContent(boolean trimTrailing) |
protected boolean |
shouldRemoveWhiteSpaces() |
void |
startCDATA() |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
protected void |
startEmptyVisibleElement() |
protected void |
startNonVisibleElement()
Append an non visible element.
|
protected void |
trimLeadingWhiteSpaces() |
protected String |
trimLeadingWhiteSpaces(CharSequence content) |
protected void |
trimTrailingWhiteSpaces() |
protected String |
trimTrailingWhiteSpaces(CharSequence content) |
endDTD, endEntity, getProperty, parse, setProperty, startDTD, startEntityendPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic XHTMLWhitespaceXMLFilter()
public XHTMLWhitespaceXMLFilter(XMLReader reader)
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class XMLFilterImplSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerstartCDATA in class DefaultXMLFilterSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerendCDATA in class DefaultXMLFilterSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class DefaultXMLFilterSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class XMLFilterImplSAXExceptionprotected boolean shouldRemoveWhiteSpaces()
protected void sendPreviousContent(boolean trimTrailing)
throws SAXException
SAXExceptionprotected void sendInlineEvent(org.xwiki.rendering.wikimodel.xhtml.filter.XHTMLWhitespaceXMLFilter.Event event)
throws SAXException
SAXExceptionprotected void flushContent()
throws SAXException
SAXExceptionprotected void flushContent(boolean trimTrailing)
throws SAXException
SAXExceptionprotected void appendInlineEvent(org.xwiki.rendering.wikimodel.xhtml.filter.XHTMLWhitespaceXMLFilter.Event event)
throws SAXException
SAXExceptionprotected void startEmptyVisibleElement()
throws SAXException
SAXExceptionprotected void endEmptyVisibleElement()
throws SAXException
SAXExceptionprotected void startNonVisibleElement()
throws SAXException
SAXExceptionprotected void endNonVisibleElement()
throws SAXException
SAXExceptionprotected void sendCharacters(char[] ch)
throws SAXException
SAXExceptionprotected void sendCharacters(char[] ch,
int start,
int length)
throws SAXException
SAXExceptionprotected void cleanContentExtraWhiteSpaces()
protected void trimLeadingWhiteSpaces()
protected String trimLeadingWhiteSpaces(CharSequence content)
protected void trimTrailingWhiteSpaces()
protected String trimTrailingWhiteSpaces(CharSequence content)
protected StringBuffer getContent()
protected boolean isSemanticComment(String comment)
comment - the comment to evaluateCopyright © 2004–2016 XWiki. All rights reserved.