|
|||||||||
| 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.tool.xar.XWikiXMLWriter
public class XWikiXMLWriter
Custom XML Writer to support XWiki's code style for XAR XML files.
| Field Summary |
|---|
| Fields inherited from class org.dom4j.io.XMLWriter |
|---|
DEFAULT_FORMAT, lastOutputNodeType, LEXICAL_HANDLER_NAMES, preserve, writer |
| Constructor Summary | |
|---|---|
XWikiXMLWriter(OutputStream output)
|
|
XWikiXMLWriter(OutputStream output,
org.dom4j.io.OutputFormat format)
|
|
| Method Summary | |
|---|---|
protected void |
writeComment(String text)
|
protected void |
writeNodeText(org.dom4j.Node node)
|
protected void |
writePrintln()
|
| Methods inherited from class org.dom4j.io.XMLWriter |
|---|
characters, close, comment, createWriter, defaultMaximumAllowedCharacter, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, escapeAttributeEntities, escapeElementEntities, flush, getLexicalHandler, getMaximumAllowedCharacter, getOutputFormat, getProperty, handleException, ignorableWhitespace, indent, installLexicalHandler, isElementSpacePreserved, isEscapeText, isExpandEmptyElements, isNamespaceDeclaration, notationDecl, parse, println, processingInstruction, resolveEntityRefs, setDocumentLocator, setEscapeText, setIndentLevel, setLexicalHandler, setMaximumAllowedCharacter, setOutputStream, setProperty, setResolveEntityRefs, setWriter, shouldEncodeChar, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl, write, write, write, write, write, write, write, write, write, write, write, write, write, writeAttribute, writeAttribute, writeAttributes, writeAttributes, writeCDATA, writeClose, writeClose, writeDeclaration, writeDocType, writeDocType, writeElement, writeElementContent, writeEmptyElementClose, writeEntity, writeEntityRef, writeEscapeAttributeEntities, writeNamespace, writeNamespace, writeNamespaces, writeNode, writeOpen, 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 XWikiXMLWriter(OutputStream output)
throws UnsupportedEncodingException
output - the stream where to write the XML
UnsupportedEncodingException - in case encoding issue
public XWikiXMLWriter(OutputStream output,
org.dom4j.io.OutputFormat format)
throws UnsupportedEncodingException
output - the stream where to write the XMLformat - the style to use when outputting the XML
UnsupportedEncodingException - in case encoding issue| Method Detail |
|---|
protected void writeComment(String text)
throws IOException
writeComment in class org.dom4j.io.XMLWriterIOException
protected void writeNodeText(org.dom4j.Node node)
throws IOException
writeNodeText in class org.dom4j.io.XMLWriterIOException
protected void writePrintln()
throws IOException
writePrintln in class org.dom4j.io.XMLWriterIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||