|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
org.dom4j.io.XMLWriter
org.xwiki.portlet.util.XHTMLWriter
public class XHTMLWriter
A specialized XMLWriter for XHTML serialization.
| Field Summary |
|---|
| Fields inherited from class org.dom4j.io.XMLWriter |
|---|
DEFAULT_FORMAT, lastOutputNodeType, LEXICAL_HANDLER_NAMES, preserve, writer |
| Constructor Summary | |
|---|---|
XHTMLWriter(Writer writer)
Creates a new XHTML writer that outputs the serialized XHTML using the given writer. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
startCDATA()
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attributes)
|
void |
startEntity(String name)
|
protected void |
writeClose(String qualifiedName)
|
protected void |
writeEmptyElementClose(String qualifiedName)
|
| Methods inherited from class org.dom4j.io.XMLWriter |
|---|
close, createWriter, defaultMaximumAllowedCharacter, endCDATA, endDTD, endEntity, endPrefixMapping, escapeAttributeEntities, escapeElementEntities, flush, getLexicalHandler, getMaximumAllowedCharacter, getOutputFormat, getProperty, handleException, indent, installLexicalHandler, isElementSpacePreserved, isEscapeText, isExpandEmptyElements, isNamespaceDeclaration, notationDecl, parse, println, resolveEntityRefs, setDocumentLocator, setEscapeText, setIndentLevel, setLexicalHandler, setMaximumAllowedCharacter, setOutputStream, setProperty, setResolveEntityRefs, setWriter, shouldEncodeChar, startDocument, startDTD, startPrefixMapping, unparsedEntityDecl, write, write, write, write, write, write, write, write, write, write, write, write, write, writeAttribute, writeAttribute, writeAttributes, writeAttributes, writeCDATA, writeClose, writeComment, writeDeclaration, writeDocType, writeDocType, writeElement, writeElementContent, writeEntity, writeEntityRef, writeEscapeAttributeEntities, writeNamespace, writeNamespace, writeNamespaces, writeNode, writeNodeText, writeOpen, writePrintln, writeProcessingInstruction, writeString |
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
|---|
error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, parse, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XHTMLWriter(Writer writer)
throws UnsupportedEncodingException
writer - where to serialize the XHTML
UnsupportedEncodingException - if the output format encoding is not supported| Method Detail |
|---|
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.dom4j.io.XMLWriterSAXException
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class org.dom4j.io.XMLWriterSAXException
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class org.dom4j.io.XMLWriterSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.dom4j.io.XMLWriterSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class org.dom4j.io.XMLWriterSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class org.dom4j.io.XMLWriterSAXException
public void startEntity(String name)
throws SAXException
startEntity in interface LexicalHandlerstartEntity in class org.dom4j.io.XMLWriterSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerstartCDATA in class org.dom4j.io.XMLWriterSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class org.dom4j.io.XMLWriterSAXException
protected void writeClose(String qualifiedName)
throws IOException
writeClose in class org.dom4j.io.XMLWriterIOException
protected void writeEmptyElementClose(String qualifiedName)
throws IOException
writeEmptyElementClose in class org.dom4j.io.XMLWriterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||